< prev index next >

src/java.base/share/classes/java/lang/invoke/MethodHandle.java

Print this page

        

@@ -1661,11 +1661,11 @@
     /*non-public*/
     void updateForm(LambdaForm newForm) {
         assert(newForm.customized == null || newForm.customized == this);
         if (form == newForm)  return;
         newForm.prepare();  // as in MethodHandle.<init>
-        UNSAFE.putObject(this, FORM_OFFSET, newForm);
+        UNSAFE.putReference(this, FORM_OFFSET, newForm);
         UNSAFE.fullFence();
     }
 
     /** Craft a LambdaForm customized for this particular MethodHandle */
     /*non-public*/
< prev index next >