Hi Yasumasa,
This isn't code I know very well, and I'm not a Reviewer. Just a couple of observations. I wonder if the person who originally suggested this change realized the disruption it would have to existing switch statements. I'm not saying the change shouldn't be done for this reason, but it is something to at least consider. Your coding pattern for the following differs from the existing 200+ instances of VM.registerVMInitializedObserver() calls already in place. I suggest you be consistent with existing code. 71 static { 72 VM.registerVMInitializedObserver( 73 (o, d) -> initialize(VM.getVM().getTypeDataBase())); 74 } thanks, Chris On 11/27/17 11:49 PM, Yasumasa Suenaga wrote: Hi all,Enum values in BasicType and BasicTypeSize are declared as const values. However, it makes error prone when existing enum values change. They should refer to HotSpot values via VMStructs. This issue has been pointed by Jini [1]. I uploaded webrev for this issue. Could you review it? http://cr.openjdk.java.net/~ysuenaga/JDK-8190837/webrev.00/ I cannot access JPRT. So I need a sponsor. Thanks, Yasumasa [1] http://mail.openjdk.java.net/pipermail/serviceability-dev/2017-October/021965.html
|
- RFR: 8190837: BasicType and BasicTypeSize should refer to... Yasumasa Suenaga
- Re: RFR: 8190837: BasicType and BasicTypeSize should... Chris Plummer
- Re: RFR: 8190837: BasicType and BasicTypeSize sh... Yasumasa Suenaga
- Re: RFR: 8190837: BasicType and BasicTypeSiz... Chris Plummer
- Re: RFR: 8190837: BasicType and BasicTypeSize should... Yasumasa Suenaga
- Re: RFR: 8190837: BasicType and BasicTypeSize sh... Chris Plummer
- Re: RFR: 8190837: BasicType and BasicTypeSiz... Yasumasa Suenaga
- Re: RFR: 8190837: BasicType and BasicTypeSiz... Jini George
- Re: RFR: 8190837: BasicType and BasicTyp... David Holmes
- Re: RFR: 8190837: BasicType and Bas... Yasumasa Suenaga
- Re: RFR: 8190837: BasicType and... David Holmes
- Re: RFR: 8190837: BasicType... Yasumasa Suenaga