Skip to content

Close VM and thread libraries on successful DestroyJavaVM - #17336

Merged
pshipton merged 1 commit into
eclipse-openj9:masterfrom
gacholio:multivm
May 9, 2023
Merged

Close VM and thread libraries on successful DestroyJavaVM#17336
pshipton merged 1 commit into
eclipse-openj9:masterfrom
gacholio:multivm

Conversation

@gacholio

@gacholio gacholio commented May 4, 2023

Copy link
Copy Markdown
Contributor

Close VM and thread libraries if DestroyJavaVM is successful.

Related: #17267

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

Close VM and thread libraries if DestroyJavaVM is successful.

Related: eclipse-openj9#17267

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

gacholio commented May 4, 2023

Copy link
Copy Markdown
Contributor Author

This has passed an all platforms internal build.

@gacholio gacholio changed the title close libraries Close VM and thread libraries on successful DestroyJavaVM May 4, 2023
@gacholio
gacholio marked this pull request as ready for review May 5, 2023 00:54
@gacholio
gacholio requested a review from pshipton May 5, 2023 00:55
@pshipton

pshipton commented May 5, 2023

Copy link
Copy Markdown
Member

There are other libraries preloaded as well, should we save the handles so they can also be closed?
On Windows: hookable, port, j9zip
Others: omrsig, port
and z/OS also opens java

@gacholio

gacholio commented May 5, 2023

Copy link
Copy Markdown
Contributor Author

Perhaps - if they have globals they could be a problem.

@gacholio

gacholio commented May 9, 2023

Copy link
Copy Markdown
Contributor Author

Can I suggest we worry about other libraries in a future PR? This is really meant to address the foolish thread control API that fills in the memory categories (no doubt a result of the J9/OMR disconnect).

@pshipton

pshipton commented May 9, 2023

Copy link
Copy Markdown
Member

Ok.

@pshipton
pshipton merged commit 7815549 into eclipse-openj9:master May 9, 2023
@gacholio
gacholio deleted the multivm branch May 9, 2023 15:06
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.

2 participants