src/hotspot/share/utilities/macros.hpp
changeset 50113 caf115bb98ad
parent 50021 b8308d6356e7
child 50523 7b7c75d87f9b
child 56578 e8414c8ead61
--- a/src/hotspot/share/utilities/macros.hpp	Tue May 15 11:28:29 2018 -0700
+++ b/src/hotspot/share/utilities/macros.hpp	Tue May 15 20:24:34 2018 +0200
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -227,9 +227,15 @@
 #define NOT_NMT(x) x
 #endif // INCLUDE_NMT
 
-#ifndef INCLUDE_TRACE
-#define INCLUDE_TRACE 1
-#endif // INCLUDE_TRACE
+#ifndef INCLUDE_JFR
+#define INCLUDE_JFR 1
+#endif
+
+#if INCLUDE_JFR
+#define JFR_ONLY(code) code
+#else
+#define JFR_ONLY(code)
+#endif
 
 #ifndef INCLUDE_JVMCI
 #define INCLUDE_JVMCI 1