mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8257189: Handle concurrent updates of MH.form better
Reviewed-by: redestad, psandoz
This commit is contained in:
parent
670426646d
commit
692b273ec5
5 changed files with 69 additions and 53 deletions
|
@ -501,6 +501,9 @@ class LambdaForm {
|
|||
|
||||
/** Customize LambdaForm for a particular MethodHandle */
|
||||
LambdaForm customize(MethodHandle mh) {
|
||||
if (customized == mh) {
|
||||
return this;
|
||||
}
|
||||
LambdaForm customForm = new LambdaForm(arity, names, result, forceInline, mh, kind);
|
||||
if (COMPILE_THRESHOLD >= 0 && isCompiled) {
|
||||
// If shared LambdaForm has been compiled, compile customized version as well.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue