mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
8145371: ClassCastException thrown in LambdaFormEditor.getInCache
Read field into local to avoid customization race Reviewed-by: vlivanov, jrose, psandoz
This commit is contained in:
parent
46c4af28a4
commit
7838184968
1 changed files with 1 additions and 0 deletions
|
@ -1667,6 +1667,7 @@ assertEquals("[three, thee, tee]", asListFix.invoke((Object)argv).toString());
|
|||
/** Craft a LambdaForm customized for this particular MethodHandle */
|
||||
/*non-public*/
|
||||
void customize() {
|
||||
final LambdaForm form = this.form;
|
||||
if (form.customized == null) {
|
||||
LambdaForm newForm = form.customize(this);
|
||||
updateForm(newForm);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue