Changelog

tc39/ecma262 · · 4 commits

Atomics gain pause/notify, symbol registry moves

Adds new Atomics operations and refactors Symbol.for storage into the Agent record; also editorial cleanups across built-in subclassing text.

Atomics gets notify and pause (linusg8c0c94e)

Adds the Atomics.notify built-in, formalizing how agents are woken from a wait queue, and introduces Atomics.pause as a spin-wait hint for optimizing busy loops. These are meaningful concurrency-facing additions for implementations and authors working with shared memory.

Global symbol registry now lives on the Agent record (linusgb12c8ef)

Moves [[GlobalSymbolRegistry]] from a global list into the Agent Record and updates Symbol.for accordingly to use the surrounding agent’s registry. This better matches the spec’s execution model and clarifies that the registry is append-only and agent-scoped.

Other misc changes

  • Reworded subclassing guidance for TypedArray, Map, Set, WeakMap, WeakSet, ArrayBuffer, SharedArrayBuffer, DataView, WeakRef, FinalizationRegistry, and Promise.
  • Replaced remaining [[HostSynchronizesWith]] wording with host-synchronizes-with terminology.
  • Editorial rewording of subclassing text (michaelficarra0088cd6).
  • Minor spec wording cleanup around host synchronization (michaelficarra8ef83c7).