RFR: 8291237: Encapsulate nmethod Deoptimization logic [v7]

Coleen Phillimore coleenp at openjdk.org
Thu Aug 25 22:22:59 UTC 2022


On Thu, 25 Aug 2022 22:04:47 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:

>> Axel Boldt-Christmas has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Add context active assert
>
> src/hotspot/share/prims/jvmtiRedefineClasses.cpp line 4157:
> 
>> 4155:       }
>> 4156:     }
>> 4157:     log_debug(redefine, class, nmethod)("Enqueued all nmethods for deopt");
> 
> This seems to do the opposite of encapsulating nmethod logic by exposing RedefineClasses to the interesting bits of CodeCache iteration.  And details of deoptimization that redefine classes really has other things to worry about.  I didn't realize you were doing this.  I suppose it's better than a big #if JVMTI in codeCache.cpp.

Maybe this is ok, but I want to look at it more.  The reason these functions started out in codeCache is because they looked like other functions in codeCache.

-------------

PR: https://git.openjdk.org/jdk/pull/9655


More information about the serviceability-dev mailing list