src/java.base/share/classes/java/lang/invoke/MethodHandle.java
changeset 52220 9c260a6b6471
parent 51986 c1db377f6300
child 52914 4fa75d8ad418
equal deleted inserted replaced
52219:151b990e3764 52220:9c260a6b6471
  1661     /*non-public*/
  1661     /*non-public*/
  1662     void updateForm(LambdaForm newForm) {
  1662     void updateForm(LambdaForm newForm) {
  1663         assert(newForm.customized == null || newForm.customized == this);
  1663         assert(newForm.customized == null || newForm.customized == this);
  1664         if (form == newForm)  return;
  1664         if (form == newForm)  return;
  1665         newForm.prepare();  // as in MethodHandle.<init>
  1665         newForm.prepare();  // as in MethodHandle.<init>
  1666         UNSAFE.putObject(this, FORM_OFFSET, newForm);
  1666         UNSAFE.putReference(this, FORM_OFFSET, newForm);
  1667         UNSAFE.fullFence();
  1667         UNSAFE.fullFence();
  1668     }
  1668     }
  1669 
  1669 
  1670     /** Craft a LambdaForm customized for this particular MethodHandle */
  1670     /** Craft a LambdaForm customized for this particular MethodHandle */
  1671     /*non-public*/
  1671     /*non-public*/