Open Bug 1225452 Opened 4 years ago Updated 3 years ago

Make shared-memory guard hoistable

Categories

(Core :: JavaScript Engine: JIT, defect, P3)

defect

Tracking

()

People

(Reporter: lth, Unassigned)

References

(Blocks 1 open bug)

Details

Bug 1176214 introduces a run-time guard on atomic operations that checks that the TypedArray is mapping shared memory.  Bug 1225025 attempts to remove that guard through type inference.

But if the guard is left in the code, it should be possible to hoist it out of loops to the same extent as range checking, more or less: whether a TypedArray has shared memory or not is a static aspect of the object, it never changes.
Priority: -- → P3
Blocks: 1317626
No longer blocks: shared-array-buffer
You need to log in before you can comment on or make changes to this bug.