[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-hotspot-runtime-dev
Subject:    Integrated: 8332176: Refactor ClassListParser::parse()
From:       Ioi Lam <iklam () openjdk ! org>
Date:       2024-05-15 23:04:05
Message-ID: OSjUtDvhQfzrhjo37ZH0AEqekW0DtN0LX39MslCNDAE=.1f970503-7594-4b47-bf1d-bfe046e09740 () github ! com
[Download RAW message or body]

On Tue, 14 May 2024 01:44:02 GMT, Ioi Lam <iklam@openjdk.org> wrote:

> The handling of `@` tags in `ClassListParser::parse()` is quite convoluted. As we \
> expect to add more `@` tags in Project Leyden, we should refactor this code to make \
> it more maintainable. 
> It's easier to review the changes by ignoring the whitespace changes.
> 
> - I refactored the parsing to two parts -- `parse_at_tags()` and \
>                 `parse_class_name_and_attributes()`
> - I changed  the `ClassListParser::parse()` to no longer return the number of \
> classes loaded -- some `@` tags can cause many classes to be loaded as a side \
> effect (e.g., `@lambda-form-invoker`), so the number returned by \
> `ClassListParser::parse()` is not accurate. There are other CDS logs that print out \
> the exact number of classes stored in the archive.

This pull request has now been integrated.

Changeset: b687aa55
Author:    Ioi Lam <iklam@openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/b687aa550837830b38f0f0faa69c353b1e85219c
                
Stats:     154 lines in 3 files changed: 34 ins; 45 del; 75 mod

8332176: Refactor ClassListParser::parse()

Reviewed-by: matsaave, ccheung

-------------

PR: https://git.openjdk.org/jdk/pull/19225


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic