Skip to content

Commit 7b6b353

Browse files
parttimenerdjbachorik
authored andcommitted
Fix zero build
1 parent d240402 commit 7b6b353

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hotspot/share/prims/whitebox.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
#include "osContainer_linux.hpp"
129129
#include "os_linux.hpp"
130130
#endif
131-
#ifdef INCLUDE_JFR
131+
#if INCLUDE_JFR && defined(ASSERT)
132132
#include "jfr/periodic/sampling/jfrCPUTimeThreadSampler.hpp"
133133
#endif
134134

@@ -190,7 +190,7 @@ WB_ENTRY(jstring, WB_PrintString(JNIEnv* env, jobject wb, jstring str, jint max_
190190
WB_END
191191

192192
WB_ENTRY(void, WB_SetCPUTimeSamplerProcessQueue(JNIEnv* env, jobject o, bool process_queue))
193-
#if defined(INCLUDE_JFR) && defined(ASSERT)
193+
#if INCLUDE_JFR != 0 && defined(ASSERT)
194194
JfrCPUTimeThreadSampling::set_process_queue(process_queue);
195195
#else
196196
warning("Stopping the CPU time sampler is only supported in debug builds with JFR");

0 commit comments

Comments
 (0)