40 lines
2.0 KiB
Diff
40 lines
2.0 KiB
Diff
|
|
From 005d0a4e518c2f41aa1d5fc76110214001532df8 Mon Sep 17 00:00:00 2001
|
||
|
|
Date: Wed, 29 May 2024 14:52:13 +0800
|
||
|
|
Subject: [PATCH] [Backport]8151845: Comment in globals.hpp for MetaspaceSize is
|
||
|
|
incorrect.
|
||
|
|
---
|
||
|
|
hotspot/src/share/vm/memory/metaspace.cpp | 2 +-
|
||
|
|
hotspot/src/share/vm/runtime/globals.hpp | 3 ++-
|
||
|
|
2 files changed, 3 insertions(+), 2 deletions(-)
|
||
|
|
|
||
|
|
diff --git a/hotspot/src/share/vm/memory/metaspace.cpp b/hotspot/src/share/vm/memory/metaspace.cpp
|
||
|
|
index d08bfba84..1df9eb606 100644
|
||
|
|
--- a/hotspot/src/share/vm/memory/metaspace.cpp
|
||
|
|
+++ b/hotspot/src/share/vm/memory/metaspace.cpp
|
||
|
|
@@ -2599,7 +2599,7 @@ void MetaspaceGC::compute_new_size() {
|
||
|
|
if (PrintGCDetails && Verbose) {
|
||
|
|
gclog_or_tty->print_cr(" "
|
||
|
|
" shrinking:"
|
||
|
|
- " initSize: %.1fK"
|
||
|
|
+ " initThreshold: %.1fK"
|
||
|
|
" maximum_desired_capacity: %.1fK",
|
||
|
|
MetaspaceSize / (double) K,
|
||
|
|
maximum_desired_capacity / (double) K);
|
||
|
|
diff --git a/hotspot/src/share/vm/runtime/globals.hpp b/hotspot/src/share/vm/runtime/globals.hpp
|
||
|
|
index 6aa53d2d2..f3daa12a6 100644
|
||
|
|
--- a/hotspot/src/share/vm/runtime/globals.hpp
|
||
|
|
+++ b/hotspot/src/share/vm/runtime/globals.hpp
|
||
|
|
@@ -3332,7 +3332,8 @@ class CommandLineFlags {
|
||
|
|
"non-daemon thread (in bytes)") \
|
||
|
|
\
|
||
|
|
product_pd(uintx, MetaspaceSize, \
|
||
|
|
- "Initial size of Metaspaces (in bytes)") \
|
||
|
|
+ "Initial threshold (in bytes) at which a garbage collection " \
|
||
|
|
+ "is done to reduce Metaspace usage") \
|
||
|
|
\
|
||
|
|
product(uintx, MaxMetaspaceSize, max_uintx, \
|
||
|
|
"Maximum size of Metaspaces (in bytes)") \
|
||
|
|
--
|
||
|
|
2.23.0
|
||
|
|
|