mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8072693: [BACKOUT] GCCause should distinguish jcmd GC.run from System.gc()
Reviewed-by: jwilhelm, tschatzl
This commit is contained in:
parent
7d4ea26916
commit
685f6eb32e
3 changed files with 1 additions and 7 deletions
|
@ -103,9 +103,6 @@ const char* GCCause::to_string(GCCause::Cause cause) {
|
||||||
case _last_ditch_collection:
|
case _last_ditch_collection:
|
||||||
return "Last ditch collection";
|
return "Last ditch collection";
|
||||||
|
|
||||||
case _dcmd_gc_run:
|
|
||||||
return "Diagnostic Command";
|
|
||||||
|
|
||||||
case _last_gc_cause:
|
case _last_gc_cause:
|
||||||
return "ILLEGAL VALUE - last gc cause - ILLEGAL VALUE";
|
return "ILLEGAL VALUE - last gc cause - ILLEGAL VALUE";
|
||||||
|
|
||||||
|
|
|
@ -74,9 +74,6 @@ class GCCause : public AllStatic {
|
||||||
_g1_humongous_allocation,
|
_g1_humongous_allocation,
|
||||||
|
|
||||||
_last_ditch_collection,
|
_last_ditch_collection,
|
||||||
|
|
||||||
_dcmd_gc_run,
|
|
||||||
|
|
||||||
_last_gc_cause
|
_last_gc_cause
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -267,7 +267,7 @@ int VMUptimeDCmd::num_arguments() {
|
||||||
|
|
||||||
void SystemGCDCmd::execute(DCmdSource source, TRAPS) {
|
void SystemGCDCmd::execute(DCmdSource source, TRAPS) {
|
||||||
if (!DisableExplicitGC) {
|
if (!DisableExplicitGC) {
|
||||||
Universe::heap()->collect(GCCause::_dcmd_gc_run);
|
Universe::heap()->collect(GCCause::_java_lang_system_gc);
|
||||||
} else {
|
} else {
|
||||||
output()->print_cr("Explicit GC is disabled, no GC has been performed.");
|
output()->print_cr("Explicit GC is disabled, no GC has been performed.");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue