Skip to content

Commit

Permalink
Merge pull request #17336 from gacholio/multivm
Browse files Browse the repository at this point in the history
Close VM and thread libraries on successful DestroyJavaVM
  • Loading branch information
pshipton committed May 9, 2023
2 parents b3ac5be + 6eabdd0 commit 7815549
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions runtime/j9vm/jvm.c
Original file line number Diff line number Diff line change
Expand Up @@ -847,6 +847,13 @@ jint JNICALL DestroyJavaVM(JavaVM * javaVM)

freeGlobals();

#ifdef WIN32
FreeLibrary(j9vm_dllHandle);
FreeLibrary(thread_dllHandle);
#else /* WIN32 */
dlclose(j9vm_dllHandle);
dlclose(thread_dllHandle);
#endif /* WIN32 */
j9vm_dllHandle = 0;
thread_dllHandle = 0;

Expand Down

0 comments on commit 7815549

Please sign in to comment.