As of Firefox 137, I intend to enable Atomics.pause by default on all platforms. It is currently enabled only in Nightly builds, behind the `javascript.options.experimental.atomics_pause` preference. The Atomics.pause proposal allows using dedicated CPU instructions for microwaits, e.g. when contending for a spinlock, leading to improved power consumption over naive implementations. Our implementation was contributed by a volunteer, André Bargull. Thanks Anba :)
The proposal is currently at Stage 3 of the TC39 process. Both JavaScriptCore ( https://webkit.org/blog/16205/release-notes-for-safari-technology-preview-207/) and V8 (https://issues.chromium.org/issues/352359899) have already shipped their implementations. Bug to turn on by default: https://bugzilla.mozilla.org/show_bug.cgi?id=1937805 Standard: https://github.com/tc39/proposal-atomics-microwait -- You received this message because you are subscribed to the Google Groups "[email protected]" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/a/mozilla.org/d/msgid/dev-platform/CAC_Rxa4Pp0%2BcGLk3W1OSy1BUKzjWVwSaf86BE-ZY56LaB_DyMg%40mail.gmail.com.
