Created attachment 625844 [details] stack The upcoming testcase asserts js debug shell on IonMonkey changeset d80602d38aa8 without any CLI arguments at Assertion failure: trc->runtime->gcIncrementalState == NO_INCREMENTAL || trc->runtime->gcIncrementalState == MARK_ROOTS, s-s because gc is on the stack, tested after bug 756659 landed on IonMonkey.
This bug is located after https://bugzilla.mozilla.org/page.cgi?id=splinter.html&bug=756659&attachment=625833 modifications. This means that the InvalidationThunk has already been collected and that we are marking it too late or that the IonCode is not traced the first time which cause the invalidation thunk to be garbage collected.
(In reply to Nicolas B. Pierron [:pierron] from comment #2) > This means that the InvalidationThunk has already been collected and that we > are marking it too late or that the IonCode is not traced the first time > which cause the invalidation thunk to be garbage collected. Oops, I was confused by the NULL pointer, which is not the invalidation but related to the tracer. I wonder why we use MarkIonCodeRoot because root marking is supposed to be an unconditional marking of objects living on the stack.
Assignee: general → nicolas.b.pierron
Status: NEW → ASSIGNED
MarkIonCodeRoot is used for exactly the reason you described (if an invalidated script is on the stack, there must be an invalidator thunk as well, and we have to mark it).
Created attachment 626203 [details] [diff] [review] Fix marking of the invalidator This patch has been reviewed by dvander. The test case is still not working yet, and would likely be fixed after the next merge with mozilla-central including changes made in Bug 756732.
Attachment #626203 - Flags: review+
Created attachment 626206 [details] [diff] [review] Fix marking of the invalidator Oops, … Same comment, with the real patch this time.
https://hg.mozilla.org/projects/ionmonkey/rev/9602aebd7e43 Should be marked as resolved after the merge with Bug 756732. (changeset 9de1e72ad539)
https://hg.mozilla.org/projects/ionmonkey/rev/a15a3a3b4647 (merge importing changeset 9de1e72ad539 modifications)
Status: ASSIGNED → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → FIXED
JSBugMon: This bug has been automatically verified fixed.
Large fragile testcase -> in-testsuite-
You need to log in before you can comment on or make changes to this bug.