mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-16 17:14:41 +02:00
8293114: JVM should trim the native heap
Reviewed-by: shade, rehn, dholmes
This commit is contained in:
parent
59f66a3b83
commit
9e4fc568a6
20 changed files with 843 additions and 8 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue