[lworld] RFR: 8276812: [lworld] [lw3] JVM_ACC_FIELD_INLINED flag creates a conflict with an existing flag [v2]

Frederic Parain fparain at openjdk.java.net
Fri Nov 12 14:05:23 UTC 2021


On Thu, 11 Nov 2021 01:41:22 GMT, Mandy Chung <mchung at openjdk.org> wrote:

>> Frederic Parain has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Add null pointer check
>
> src/java.base/share/classes/jdk/internal/misc/Unsafe.java line 185:
> 
>> 183:      */
>> 184:     public boolean isFlattened(Field f) {
>> 185:         return isFlattenedField0(f);
> 
> It should do a null check before calling the native entry:
> 
> 
>     if (f == null) {
>          throw new NullPointerException();
>     }

Mandy,

Thank you for the review.
I've integrated the null check before pushing the changeset.

Fred

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

PR: https://git.openjdk.java.net/valhalla/pull/580



More information about the valhalla-dev mailing list