openj9 icon indicating copy to clipboard operation
openj9 copied to clipboard

Refactor wasDeserialized flag

Open dsouzai opened this issue 5 months ago • 1 comments

The wasDeserialized flag is used to inform other threads that the deserializer was reset. This used to be a member of the TR_CompilationInfoPerThread class. However, this class is only guaranteed to exist for compilation threads. In preparation to support AOT Method Dependencies for JITServer, a non-compilation thread may need to invoke the deserializer. As such, there needs to be a way to inform non-compilation threads that the deserializer was reset.

This commit refactors out the flag and places it in the TR_J9VMBase class. It also adds an API to allow non-compilation threads to register with the Deserializer to be notified about when the deserializer gets reset.

See https://github.com/eclipse-openj9/openj9/issues/22014

dsouzai avatar Jun 16 '25 20:06 dsouzai

@mpirvu could you please review?

dsouzai avatar Jun 16 '25 20:06 dsouzai

jenkins test sanity.functional plinuxjit,xlinuxjit,zlinuxjit,alinux64jit jdk21

mpirvu avatar Jun 19 '25 16:06 mpirvu