RFR: 8291718: Remove mark_for_deoptimization from klass unloading [v5]

Dean Long dlong at openjdk.org
Sat Aug 6 04:16:13 UTC 2022


On Fri, 5 Aug 2022 08:15:44 GMT, Erik Österlund <eosterlund at openjdk.org> wrote:

>> My concern was that we could be removing the dependencies from nmethods that are still using them.  But if that was the case, the old code would have the same problem.
>
> The compiler dependencies are protecting against loading of a class that is a subtype of X. If X is unloaded, then we can be pretty sure nobody is going to load a subclass of X.

Isn't there something we can assert about the state of these nmethods?  Maybe unlinked and !in_use?

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

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


More information about the hotspot-dev mailing list