Skip to content

Commit d240402

Browse files
parttimenerdjbachorik
authored andcommitted
Simplify #ifdefs to fix minimal and zero builds
1 parent 2192ad4 commit d240402

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/hotspot/share/prims/whitebox.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -190,12 +190,10 @@ 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-
#ifdef INCLUDE_JFR
194-
#ifdef ASSERT
193+
#if defined(INCLUDE_JFR) && defined(ASSERT)
195194
JfrCPUTimeThreadSampling::set_process_queue(process_queue);
196-
#else
197-
warning("Stopping the CPU time sampler is only supported in debug builds");
198-
#endif
195+
#else
196+
warning("Stopping the CPU time sampler is only supported in debug builds with JFR");
199197
#endif
200198
WB_END
201199

0 commit comments

Comments
 (0)