8293114: JVM should trim the native heap

Reviewed-by: shade, rehn, dholmes
This commit is contained in:
Thomas Stuefe 2023-07-21 12:22:03 +00:00
parent 59f66a3b83
commit 9e4fc568a6
20 changed files with 843 additions and 8 deletions

View file

@ -70,6 +70,7 @@
#include "runtime/task.hpp"
#include "runtime/threads.hpp"
#include "runtime/timer.hpp"
#include "runtime/trimNativeHeap.hpp"
#include "runtime/vmOperations.hpp"
#include "runtime/vmThread.hpp"
#include "runtime/vm_version.hpp"
@ -477,6 +478,8 @@ void before_exit(JavaThread* thread, bool halt) {
StatSampler::disengage();
StatSampler::destroy();
NativeHeapTrimmer::cleanup();
// Stop concurrent GC threads
Universe::heap()->stop();