WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
313432
Introduced UnbarrieredMonotonicTime.
https://bugs.webkit.org/show_bug.cgi?id=313432
Summary
Introduced UnbarrieredMonotonicTime.
Mark Lam
Reported
2026-04-27 07:46:46 PDT
UnbarrieredMonotonicTime has the timer resolution of MonotonicTime, but is optimized for speed, and does not do use any instruction barriers. As a result, a read of UnbarrieredMonotonicTime may be re-ordered by the CPU around adjacent instructions. This may reduce fidelity in accuracy for use cases like some profiling uses. However, for clients like the Opportunistic Task Scheduler, where we may want to sample the time more frequently, and are only concerned about expired time, such slight loss of fidelity in accuracy is inconsequential. At present, UnbarrieredMonotonicTime only implemented with these new semantics for ARM64 + OS(DARWIN) only, and will fall back to MonotonicTime for all other ports. Since UnbarrieredMonotonicTime is faster than ApproximateTime (whose sole purpose is speed), and has higher fidelity than ApproximateTime, we'll have ApproximateTime build on UnbarrieredMonotonicTime for the ARM64 + OS(DARWIN) port.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2026-04-27 07:47:10 PDT
<
rdar://problem/175676940
>
Mark Lam
Comment 2
2026-04-27 10:53:42 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/63719
EWS
Comment 3
2026-04-27 15:35:52 PDT
Committed
312153@main
(0d7053c9c316): <
https://commits.webkit.org/312153@main
> Reviewed commits have been landed. Closing PR #63719 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug