8309346: Extend hs_err logging for all VM operations deriving from VM_GC_Operation

Reviewed-by: tschatzl, stefank
This commit is contained in:
quadhier 2023-06-06 07:29:25 +00:00 committed by Thomas Schatzl
parent 3b85f84f02
commit a7a0913005
2 changed files with 6 additions and 0 deletions

View File

@ -68,6 +68,10 @@ VM_GC_Operation::~VM_GC_Operation() {
ch->soft_ref_policy()->set_all_soft_refs_clear(false);
}
const char* VM_GC_Operation::cause() const {
return GCCause::to_string(_gc_cause);
}
// The same dtrace probe can't be inserted in two different files, so we
// have to call it here, so it's only in one file. Can't create new probes
// for the other file anymore. The dtrace probes have to remain stable.

View File

@ -137,6 +137,8 @@ class VM_GC_Operation: public VM_GC_Sync_Operation {
}
~VM_GC_Operation();
virtual const char* cause() const;
// Acquire the Heap_lock and determine if this VM operation should be executed
// (i.e. not skipped). Return this result, and also store it in _prologue_succeeded.
virtual bool doit_prologue();