Review Request (S) 8005994: Method annotations are allocated unnecessarily during class file parsing
vitalyd at gmail.com
Tue Jan 15 05:38:54 PST 2013
Looks good Stefan. The annotation creation code in classFileParser is
really asking for a macro or helper function that does the checks and
Sent from my phone
On Jan 15, 2013 7:27 AM, "Stefan Karlsson" <stefan.karlsson at oracle.com>
> HotSpot unnecessarily allocates annotations arrays when they are not
> needed. This memory regression was introduced when the annotation data
> structures were changed in the Permgen Removal project.
> This fix:
> 1) reintroduces the old null checks
> 2) adds a null check before creating the newly introduced method type
> 3) adds a missing null check where the type annotations are used, since
> they now can be null.
> jprt, jdk_lang and type annotations tests
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the hotspot-runtime-dev