Closed Bug 831216 Opened 11 years ago Closed 11 years ago

GC: jsapi test GCFinalizeCallback fails under rooting analysis

Categories

(Core :: JavaScript Engine, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla21

People

(Reporter: jonco, Assigned: jonco)

References

Details

Attachments

(1 file)

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;
Attached patch Proposed fixSplinter Review
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
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla21
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: