Closed Bug 1371317 Opened 7 years ago Closed 7 years ago

ARM simulator: don't trigger an interrupt if the simulator is already interrupted

Categories

(Core :: JavaScript Engine: JIT, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla55
Tracking Status
firefox55 --- fixed

People

(Reporter: bbouvier, Assigned: bbouvier)

Details

Attachments

(1 file)

This happened while trying to debug bug 1371138, when running the test under rr. The regular non-simulator code does the already-interrupted check, but the simulator does not; that's easy to fix, pretty hard to test.
Attached patch fix.patchSplinter Review
Assignee: nobody → bbouvier
Status: NEW → ASSIGNED
Attachment #8875778 - Flags: review?(luke)
Comment on attachment 8875778 [details] [diff] [review]
fix.patch

Review of attachment 8875778 [details] [diff] [review]:
-----------------------------------------------------------------

What about instead removing the assert from trigger_wasm_interrupt()?
Attachment #8875778 - Flags: review?(luke) → review+
I liked the symmetry between real code / simulator code, but removing the assert is strictly less code. I'll do this and add a comment stating it's not harmful to keep it that way. Thanks for the quick review!
Pushed by bbouvier@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/6d07706eb18a
ARM simulator: don't assert when triggering a second interrupt; r=luke
https://hg.mozilla.org/mozilla-central/rev/6d07706eb18a
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: