equal
deleted
inserted
replaced
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*/ |