Skip to content
This repository has been archived by the owner on Sep 19, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
8296463: Memory leak in JVM_StartThread with the integration of Virtu…
…al threads

Reviewed-by: thartmann
Backport-of: 7b3984cb5a08edb99a233c28331c00b25457d664
  • Loading branch information
David Holmes committed Nov 28, 2022
1 parent 94de334 commit 0959a65
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hotspot/share/runtime/thread.cpp
Expand Up @@ -1229,10 +1229,11 @@ JavaThread::JavaThread(ThreadFunction entry_point, size_t stack_sz) : JavaThread

JavaThread::~JavaThread() {

// Ask ServiceThread to release the threadObj OopHandle
// Ask ServiceThread to release the OopHandles
ServiceThread::add_oop_handle_release(_threadObj);
ServiceThread::add_oop_handle_release(_vthread);
ServiceThread::add_oop_handle_release(_jvmti_vthread);
ServiceThread::add_oop_handle_release(_extentLocalCache);

// Return the sleep event to the free list
ParkEvent::Release(_SleepEvent);
Expand Down

1 comment on commit 0959a65

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.