Closed Bug 562999 Opened 15 years ago Closed 15 years ago

JM: Multithreading safety

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 551341

People

(Reporter: dmandelin, Unassigned)

References

Details

A script can potentially be shared across multiple threads. This presents hazards--for example, patching a PIC on one thread while another thread is running the same native code would be unsafe (very, very unsafe). We need to ensure, one way or another, than only one thread can be running/patching a given native code script at a time.
Dare I ask whether you can just ignore this problem and start from scratch on each thread (basically making all the codegen thread-local)?
(In reply to comment #1) > Dare I ask whether you can just ignore this problem and start from scratch on > each thread (basically making all the codegen thread-local)? We should probably dup this bug over to bug 551341, which I had forgotten about. If I understand that proposal right, it means fixing a script to a given JSThread, and the script would run natively only on that thread--otherwise it would go to the interpreter. Any ideas for simplifying this further would be great.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.