On Thu, 8 Dec 2022 14:22:15 GMT, Coleen Phillimore <cole...@openjdk.org> wrote:
> Thanks to Kim for the diagnosis of this problem. G1 cleans up nmethods in > parallel threads during a safepoint and may post or queue unload events to be > posted. The event posting creates jmethodIDs. The jmethodID code assumes > that it's thread safe in a safepoint, which it is not. > I removed this optimization, which isn't much of an optimization and is > unsafe in the modern code. > Tested with tier1-5, where 5 found the original bug. > I'll also rebase this to JDK 20 repository and close this, but here's a > preview. This pull request has been closed without being integrated. ------------- PR: https://git.openjdk.org/jdk/pull/11594