Intent to Ship: Atomics.pause

214 views
Skip to first unread message

Chromestatus

unread,
Nov 15, 2024, 2:49:54 PM11/15/24
to blin...@chromium.org, s...@chromium.org

Contact emails

s...@chromium.org

Explainer

None

Specification

https://tc39.es/proposal-atomics-microwait

Summary

Adds the Atomics.pause method to hint the CPU that the current code is executing a spinlock.



Blink component

Blink>JavaScript>Language

TAG review

None

TAG review status

Not applicable

Risks



Interoperability and Compatibility

None. This is a new static method on the Atomics namespace object.



Gecko: Positive This is a Stage 3 TC39 proposal.

WebKit: Positive This is a Stage 3 TC39 proposal.

Web developers: No signals

Other signals:

WebView application risks

Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?

None



Debuggability

None



Will this feature be supported on all six Blink platforms (Windows, Mac, Linux, ChromeOS, Android, and Android WebView)?

Yes

Is this feature fully tested by web-platform-tests?

Yes

Exists in test262: https://github.com/tc39/test262/tree/main/test/built-ins/Atomics/pause



Flag name on about://flags

--js-atomics-pause

Finch feature name

V8Flag_js_atomics_pause

Requires code in //chrome?

False

Estimated milestones

Shipping on desktop 133
DevTrial on desktop 128
Shipping on Android 133
DevTrial on Android 128
Shipping on WebView 133


Anticipated spec changes

Open questions about a feature may be a source of future web compat or interop issues. Please list open issues (e.g. links to known github issues in the project for the feature specification) whose resolution may introduce web compat/interop risk (e.g., changing to naming or structure of the API in a non-backward-compatible way).

None

Link to entry on the Chrome Platform Status

https://chromestatus.com/feature/5106098833719296?gate=5145399126654976

This intent message was generated by Chrome Platform Status.

Rick Byers

unread,
Nov 15, 2024, 2:59:56 PM11/15/24
to Chromestatus, blin...@chromium.org, s...@chromium.org
LGTM1 as TC39 stage 3

--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/6737a5d4.2b0a0220.1cf8a2.04ee.GAE%40google.com.

Mike Taylor

unread,
Nov 16, 2024, 9:21:22 AM11/16/24
to Rick Byers, Chromestatus, blin...@chromium.org, s...@chromium.org

Domenic Denicola

unread,
Nov 18, 2024, 3:05:18 AM11/18/24
to blink-dev, Mike Taylor, blin...@chromium.org, Shu-yu Guo, Rick Byers, Chromestatus
LGTM3.

You might want to update ChromeStatus's explainer field to point to https://github.com/tc39/proposal-atomics-microwait/blob/main/README.md which is a pretty nice explainer.

To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
Reply all
Reply to author
Forward
0 new messages