mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 01:24:33 +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
|
@ -53,6 +53,7 @@
|
|||
#include "runtime/mutexLocker.hpp"
|
||||
#include "runtime/safepointVerifiers.hpp"
|
||||
#include "runtime/timerTrace.hpp"
|
||||
#include "runtime/trimNativeHeap.hpp"
|
||||
#include "services/diagnosticCommand.hpp"
|
||||
#include "utilities/concurrentHashTable.inline.hpp"
|
||||
#include "utilities/concurrentHashTableTasks.inline.hpp"
|
||||
|
@ -456,6 +457,7 @@ void StringTable::clean_dead_entries(JavaThread* jt) {
|
|||
|
||||
StringTableDeleteCheck stdc;
|
||||
StringTableDoDelete stdd;
|
||||
NativeHeapTrimmer::SuspendMark sm("stringtable");
|
||||
{
|
||||
TraceTime timer("Clean", TRACETIME_LOG(Debug, stringtable, perf));
|
||||
while(bdt.do_task(jt, stdc, stdd)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue