File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -815,6 +815,7 @@ public static class Names {
815
815
public static final Symbol <Name > lock = SYMBOLS .putName ("lock" );
816
816
public static final Symbol <Name > next = SYMBOLS .putName ("next" );
817
817
public static final Symbol <Name > NULL = SYMBOLS .putName ("NULL" );
818
+ public static final Symbol <Name > NULL_QUEUE = SYMBOLS .putName ("NULL_QUEUE" );
818
819
public static final Symbol <Name > pending = SYMBOLS .putName ("pending" );
819
820
public static final Symbol <Name > processPendingLock = SYMBOLS .putName ("processPendingLock" );
820
821
public static final Symbol <Name > queue = SYMBOLS .putName ("queue" );
Original file line number Diff line number Diff line change @@ -752,7 +752,10 @@ public Meta(EspressoContext context) {
752
752
java_lang_ref_Reference_next = java_lang_ref_Reference .requireDeclaredField (Names .next , Types .java_lang_ref_Reference );
753
753
java_lang_ref_Reference_queue = java_lang_ref_Reference .requireDeclaredField (Names .queue , Types .java_lang_ref_ReferenceQueue );
754
754
java_lang_ref_ReferenceQueue = knownKlass (Types .java_lang_ref_ReferenceQueue );
755
- java_lang_ref_ReferenceQueue_NULL = java_lang_ref_ReferenceQueue .requireDeclaredField (Names .NULL , Types .java_lang_ref_ReferenceQueue );
755
+ java_lang_ref_ReferenceQueue_NULL = diff () //
756
+ .field (VERSION_24_OR_LOWER , Names .NULL , Types .java_lang_ref_ReferenceQueue ) //
757
+ .field (VERSION_25_OR_HIGHER , Names .NULL_QUEUE , Types .java_lang_ref_ReferenceQueue ) //
758
+ .field (java_lang_ref_ReferenceQueue );
756
759
757
760
java_lang_ref_WeakReference = knownKlass (Types .java_lang_ref_WeakReference );
758
761
java_lang_ref_SoftReference = knownKlass (Types .java_lang_ref_SoftReference );
You can’t perform that action at this time.
0 commit comments