RFR: 8348268: Test gc/shenandoah/TestResizeTLAB.java#compact: fatal error: Before Updating References: Thread C2 CompilerThread1: expected gc-state 9, actual 21

Aleksey Shipilev shade at openjdk.org
Tue Feb 4 16:05:10 UTC 2025


On Mon, 3 Feb 2025 20:28:58 GMT, William Kemper <wkemper at openjdk.org> wrote:

> Non-java threads were not having their gc-state configured when they attach. If they were created before the verifier's safepoint, but after the iteration over non-java threads, they would not have the correct state.

It looks generally okay, but I am confused how this fixes a bad state in `C2 CompilerThread1`, since compiler threads are Java threads? https://github.com/openjdk/jdk/blob/beb43e2633900bb9ab3c975376fe5860b6d054e0/src/hotspot/share/compiler/compilerThread.hpp#L42

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

PR Comment: https://git.openjdk.org/jdk/pull/23428#issuecomment-2634411610


More information about the hotspot-gc-dev mailing list