Skip to content
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

VM marking exit started too early #10273

Merged
merged 1 commit into from Aug 4, 2020
Merged

Conversation

gacholio
Copy link
Contributor

Don't indicate exit until after calling Shutdown.shutDown() in
DestroyJavaVM.

See issue for details.

Fixes: #10255

[ci skip]

Signed-off-by: Graham Chapman graham_chapman@ca.ibm.com

Don't indicate exit until after calling Shutdown.shutDown() in
DestroyJavaVM.

See issue for details.

Fixes: eclipse-openj9#10255

[ci skip]

Signed-off-by: Graham Chapman <graham_chapman@ca.ibm.com>
@pshipton
Copy link
Member

jenkins test sanity,extended zlinux jdk11

@pshipton
Copy link
Member

We should add the hanging test case to the automated tests.

@DanHeidinga
Copy link
Member

Change looks fine to me and I agree with Pete about adding the test case to the automated runs

@gacholio
Copy link
Contributor Author

gacholio commented Jul 29, 2020

I have no idea how to add tests that aren't in the JVMTI framework (which isn't appropriate here), so I suggest merging this and opening a new issue to get the test added.

For the record, I modified the test to use wait/notify rather than the latch (which doesn't exist in java 8). This isn't realiable enough to put into an automated test, so perhaps the original test should be added for JDK11+.

@gacholio
Copy link
Contributor Author

gacholio commented Jul 29, 2020

FYI, I also plan to revert #9867 and #9885 once this is merged - they were a workaround which is no longer required with this more correct solution. I have verified that the internal-only test those PRs addressed works properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Process does not terminate after calling System.exit in daemon thread
3 participants