Open Bug 1623261 Opened 5 years ago Updated 2 years ago

Use the type system more to improve thread safety in WarpBuilder

Categories

(Core :: JavaScript Engine: JIT, task, P2)

task

Tracking

()

People

(Reporter: jandem, Unassigned)

References

(Blocks 1 open bug)

Details

We should make it hard to access data off-thread that we can't use without racing. One idea is to copy the the immutable fields in JSScript to WarpScriptSnapshot. However that makes it difficult to use the BytecodeLocation interface...

After some discussion, a one thought is adding main-thread-only asserts to many of the fields we are worried about is a good start. It would also be nice to have some sort of pointer type to indicate this gc-pointer is only valid if compacting does not happen.

Priority: -- → P2
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.