# HG changeset patch # User mgronlun # Date 1569166317 -7200 # Node ID b6efcf2217f107bae66813690bbf6c22dbea9143 # Parent 48aabad45dac9cf297d9c8ef25c6c332d2f3fa8c clear_artifacts in the correct location diff -r 48aabad45dac -r b6efcf2217f1 src/hotspot/share/jfr/jfr.cpp --- a/src/hotspot/share/jfr/jfr.cpp Sun Sep 22 15:38:32 2019 +0200 +++ b/src/hotspot/share/jfr/jfr.cpp Sun Sep 22 17:31:57 2019 +0200 @@ -58,7 +58,7 @@ } void Jfr::on_unloading_classes() { - if (JfrRecorder::is_recording()) { + if (JfrRecorder::is_created()) { JfrCheckpointManager::write_type_set_for_unloaded_classes(); } } diff -r 48aabad45dac -r b6efcf2217f1 src/hotspot/share/jfr/recorder/checkpoint/types/jfrTypeSet.cpp --- a/src/hotspot/share/jfr/recorder/checkpoint/types/jfrTypeSet.cpp Sun Sep 22 15:38:32 2019 +0200 +++ b/src/hotspot/share/jfr/recorder/checkpoint/types/jfrTypeSet.cpp Sun Sep 22 17:31:57 2019 +0200 @@ -856,8 +856,8 @@ _artifacts = new JfrArtifactSet(class_unload); } else { _artifacts->initialize(class_unload, clear_artifacts); - clear_artifacts = false; } + clear_artifacts = false; assert(_artifacts != NULL, "invariant"); assert(!_artifacts->has_klass_entries(), "invariant"); }