GC: jsapi test GCFinalizeCallback fails under rooting analysis

RESOLVED FIXED in mozilla21

Status

()

RESOLVED FIXED
6 years ago
6 years ago

People

(Reporter: jonco, Assigned: jonco)

Tracking

Trunk
mozilla21
x86
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Assignee)

Description

6 years ago
Test GCFinalizeCallback fails:

Program received signal SIGSEGV, Segmentation fault.
0x00000000004273e5 in js::gc::Cell::compartment (this=0x7fffda73c060)
    at /home/jon/work/dev/tree/js/src/rooting-build/jsapi-tests/../../gc/Heap.h:980
980	    return arenaHeader()->compartment;
(Assignee)

Comment 1

6 years ago
Created attachment 702814 [details] [diff] [review]
Proposed fix

Use RootedObject for the globals, as originally, but trivially use them at the end of the test to make sure they don't get optimized away.
Attachment #702814 - Flags: review?(wmccloskey)
Attachment #702814 - Flags: review?(wmccloskey) → review+
Blocks: 831376
https://hg.mozilla.org/mozilla-central/rev/4959e4692993
Status: ASSIGNED → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla21
You need to log in before you can comment on or make changes to this bug.