Skip to content

Commit

Permalink
JDK22+ add Throwable.jfrTracing
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Feng <[email protected]>
  • Loading branch information
JasonFengJ9 committed Nov 9, 2023
1 parent 9b34f8b commit 7d06086
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion jcl/src/java.base/share/classes/java/lang/Throwable.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*[INCLUDE-IF Sidecar18-SE]*/
/*[INCLUDE-IF JAVA_SPEC_VERSION >= 8]*/
/*******************************************************************************
* Copyright IBM Corp. and others 1998
*
Expand Down Expand Up @@ -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.
*/
Expand Down

0 comments on commit 7d06086

Please sign in to comment.