RFR: JDK-8219412: Eager enum class initialization with enum switch

Claes Redestad claes.redestad at oracle.com
Tue Apr 9 11:58:37 UTC 2019

Hi Jan,

On 2019-04-09 12:32, Jan Lahoda wrote:
> For OpenJDK, there are ~150 additional classes (from 30267 to 30415) 
> with the .00 version of the patch.

to me it sounds those additional classes will mostly be the result of
splitting existing classes, so the static and potential runtime
footprint overheads are small. And .01 seems to add a BSM for every
enum switch, so while we reduce compiled classes we add other

I think it'd be good, for the sake of argument, to examine the exact
size of lib/modules with baseline, .00, and .01. My gut feeling is the
gain from the approach in .01 is smaller than it first appears.

(That said I think there is intrinsic value in exploring and using
condy for things like this.)



More information about the compiler-dev mailing list