--- a/src/hotspot/share/jfr/recorder/checkpoint/types/jfrTypeSet.cpp Thu Sep 05 16:46:50 2019 +0200
+++ b/src/hotspot/share/jfr/recorder/checkpoint/types/jfrTypeSet.cpp Mon Sep 09 13:26:35 2019 +0200
@@ -91,6 +91,10 @@
return symbol != NULL ? create_symbol_id(_artifacts->mark(symbol, leakp)) : 0;
}
+static traceid get_bootstrap_name(bool leakp) {
+ return create_symbol_id(_artifacts->bootstrap_name(leakp));
+}
+
template <typename T>
static traceid artifact_id(const T* ptr) {
assert(ptr != NULL, "invariant");
@@ -492,7 +496,7 @@
// (primordial) boot class loader
writer->write(artifact_id(cld)); // class loader instance id
writer->write((traceid)0); // class loader type id (absence of)
- writer->write(create_symbol_id(1)); // 1 maps to synthetic name -> "bootstrap"
+ writer->write(get_bootstrap_name(leakp)); // maps to synthetic name -> "bootstrap"
} else {
writer->write(artifact_id(cld)); // class loader instance id
writer->write(artifact_id(class_loader_klass)); // class loader type id