-
Notifications
You must be signed in to change notification settings - Fork 729
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle GC thread shutdown during checkpoint #16607
Conversation
fc37783
to
74ca318
Compare
@gacholio please review |
jenkins test sanity alinux64 jdk17 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm amazed this has been wrong for so long.
|
|
Why can this not be accomplished in the java code (as seems to be the case in the failing tests)? Another random thought - does the native code require synchronization and notification? |
I see the problem with this code. I am trying to address the fact that GC thread objects cannot run the |
Can you move the hack out of the common code into the GC? If you remove the attach call, the GC threads will not appear in the javacore (among other issues no doubt). |
The test failures we are seeing are due to the thread not being removed from the ThreadGroup lists. |
jenkins test sanity alinux64 jdk17 |
Trying a new approach to isolate the changes to non Java threads. It passed all my local testing |
Although, do we even need to call the ThreadObject constructor on GC Threads? If you enumerate the system thread group on J9 it returns GC and JIT threads, but hotspot does not. |
Not constructing the objects would change (omit) the names in the javacore, I expect. |
jenkins test sanity alinux64 jdk17 |
jenkins test sanity alinux64 jdk17 |
I dont think this approach is quite right either, ill try something else |
a5465d8
to
684cd28
Compare
03134ee
to
8fdc02b
Compare
jenkins test sanity alinux64 jdk11 |
jenkins test sanity xlinux jdk17 |
|
Add synchronzation to the delayedLockingOperations path to handle the case where the GC is shutting down its threads simulatneously. Signed-off-by: Tobi Ajila <atobia@ca.ibm.com>
jenkins test sanity alinux64 jdk11 |
Handle GC thread shutdown during checkpoint
Add synchronzation to the delayedLockingOperations path to handle the
case where the GC is shutting down its threads simulatneously.
Signed-off-by: Tobi Ajila atobia@ca.ibm.com