Skip to content
This repository has been archived by the owner. It is now read-only.
Browse files
8278575: update jcmd GC.finalizer_info to list finalization status
Co-authored-by: David Holmes <>
Reviewed-by: dholmes, kbarrett
  • Loading branch information
Stuart Marks and David Holmes committed Dec 16, 2021
1 parent d3408a4 commit e82310f3605b37519129ea34b2a6f99ee3ccc63a
Showing 1 changed file with 6 additions and 0 deletions.
@@ -36,6 +36,7 @@
#include "memory/metaspace/metaspaceDCmd.hpp"
#include "memory/resourceArea.hpp"
#include "memory/universe.hpp"
#include "oops/instanceKlass.hpp"
#include "oops/objArrayOop.inline.hpp"
#include "oops/oop.inline.hpp"
#include "oops/typeArrayOop.inline.hpp"
@@ -419,6 +420,11 @@ void HeapInfoDCmd::execute(DCmdSource source, TRAPS) {
void FinalizerInfoDCmd::execute(DCmdSource source, TRAPS) {
ResourceMark rm(THREAD);

if (!InstanceKlass::is_finalization_enabled()) {
output()->print_cr("Finalization is disabled");

Klass* k = SystemDictionary::resolve_or_fail(
vmSymbols::finalizer_histogram_klass(), true, CHECK);

1 comment on commit e82310f

Copy link

@openjdk-notifier openjdk-notifier bot commented on e82310f Dec 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.