From cab28e78b03b9d97a87c022e0b6256ef6a010379 Mon Sep 17 00:00:00 2001 From: egahlin Date: Fri, 17 Jan 2020 17:32:41 +0800 Subject: [PATCH] 8209960: -Xlog:jfr* doesn't work with the JFR Reviewed-by: mgronlun --- src/share/vm/jfr/dcmd/jfrDcmds.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/share/vm/jfr/dcmd/jfrDcmds.cpp b/src/share/vm/jfr/dcmd/jfrDcmds.cpp index dcb9e98d1..167405e39 100644 --- a/src/share/vm/jfr/dcmd/jfrDcmds.cpp +++ b/src/share/vm/jfr/dcmd/jfrDcmds.cpp @@ -448,6 +448,12 @@ void JfrStartFlightRecordingDCmd::execute(DCmdSource source, TRAPS) { assert(element != NULL, "invariant"); JfrJavaSupport::set_array_element(settings, element, i, CHECK); } + } else { + settings = JfrJavaSupport::new_string_array(1, CHECK); + assert(settings != NULL, "invariant"); + jobject element = JfrJavaSupport::new_string("default", CHECK); + assert(element != NULL, "invariant"); + JfrJavaSupport::set_array_element(settings, element, 0, CHECK); } static const char klass[] = "jdk/jfr/internal/dcmd/DCmdStart"; -- GitLab