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

@ -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)) {