File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/heap Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -198,20 +198,16 @@ static void reachabilityFence(Object ref) {
198198 GraalDirectives .blackhole (ref );
199199 }
200200
201- @ Substitute //
201+ @ KeepOriginal
202202 @ TargetElement (onlyWith = JDK16OrLater .class ) //
203- T getFromInactiveFinalReference () {
204- // assert this instanceof FinalReference;
205- assert next != null ; // I.e. FinalReference is inactive
206- return get ();
207- }
203+ native T getFromInactiveFinalReference ();
208204
209205 @ Substitute //
210206 @ TargetElement (onlyWith = JDK16OrLater .class ) //
211207 void clearInactiveFinalReference () {
212208 // assert this instanceof FinalReference;
213209 assert next != null ; // I.e. FinalReference is inactive
214- clear ();
210+ ReferenceInternals . clear (SubstrateUtil . cast ( this , Reference . class ) );
215211 }
216212}
217213
You can’t perform that action at this time.
0 commit comments