From 7d06086f0e7d6c6acafb86cfa862ad11c7f9c092 Mon Sep 17 00:00:00 2001 From: Jason Feng Date: Thu, 9 Nov 2023 09:34:17 -0500 Subject: [PATCH] JDK22+ add Throwable.jfrTracing Signed-off-by: Jason Feng --- jcl/src/java.base/share/classes/java/lang/Throwable.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/jcl/src/java.base/share/classes/java/lang/Throwable.java b/jcl/src/java.base/share/classes/java/lang/Throwable.java index 66a608ba137..a770da3491a 100644 --- a/jcl/src/java.base/share/classes/java/lang/Throwable.java +++ b/jcl/src/java.base/share/classes/java/lang/Throwable.java @@ -1,4 +1,4 @@ -/*[INCLUDE-IF Sidecar18-SE]*/ +/*[INCLUDE-IF JAVA_SPEC_VERSION >= 8]*/ /******************************************************************************* * Copyright IBM Corp. and others 1998 * @@ -55,6 +55,11 @@ public class Throwable implements java.io.Serializable { private static final long serialVersionUID = -3042686055658047285L; + /*[IF JAVA_SPEC_VERSION >= 22]*/ + // The default value is false, JFR is not supported. + static final boolean jfrTracing = false; + /*[ENDIF] JAVA_SPEC_VERSION >= 22 */ + /** * The message provided when the exception was created. */