@@ -508,12 +508,13 @@ Full benchmark data and analysis:
508508snapshots for wall-clock collapsing and TaskBlock emission. The parked flag suppresses
509509wall-clock signals on filtered threads when enabled.
510510
511- ### ` wallprecheck ` (default ` true ` )
511+ ### ` wallprecheck ` (default ` false ` , opt-in )
512512
513- When thread filtering is enabled and ` Arguments::_wall_precheck ` is true, the wall-clock
514- timer samples ** HotSpot** ` VMThread::osThreadState() ` ** before** sending ` SIGVTALRM ` .
515- Slots must hold a non-null ` VMThread* ` from registration (` ThreadFilter::setVMThread ` )
516- for the precheck to run; otherwise only Java park-flag suppression applies.
513+ Disabled by default. When explicitly enabled with ` wallprecheck=true ` * and* thread filtering
514+ is on (` Arguments::_wall_precheck == true ` ), the wall-clock timer samples ** HotSpot**
515+ ` VMThread::osThreadState() ` ** before** sending ` SIGVTALRM ` . Slots must hold a non-null
516+ ` VMThread* ` from registration (` ThreadFilter::setVMThread ` ) for the precheck to run;
517+ otherwise only Java park-flag suppression applies.
517518
518519On JDK ** 21+** , ` Thread.sleep ` often maps to ** CONDVAR_WAIT** (not only legacy ** SLEEPING** ),
519520same broad category as condvar-based park — see ` PrecheckTest ` and ` wallClock.cpp ` .
@@ -524,8 +525,10 @@ JVMTI `MonitorWait` / `MonitorWaited` callbacks are registered only when
524525` java_version() < 21 ` (` vmEntry.cpp ` ). They populate TaskBlock with a ** blocker** value
525526matching ** ` System.identityHashCode(waitedObject) ` ** (same convention as the JNI park path).
526527
527- For ** ` wallprecheck=false ` ** (isolation tests such as ` ParkTaskBlockTest ` ), OS-thread-state
528- suppression is disabled so parked-flag behavior can be tested without condvar/sleep overlap.
528+ With the default ** ` wallprecheck=false ` ** , OS-thread-state suppression is off, so parked-flag
529+ behavior can be tested without condvar/sleep overlap (isolation tests such as
530+ ` ParkTaskBlockTest ` ). The precheck path is exercised by ` PrecheckTest ` and
531+ ` WallclockMitigationsCombinedTest ` , which both pass ` wallprecheck=true ` explicitly.
529532
530533## OTEP References
531534
0 commit comments