Closed Bug 737997 Opened 12 years ago Closed 12 years ago

"Assertion failure: rt->gcMode != JSGC_MODE_GLOBAL" with certain GC prefs and gczeal

Categories

(Core :: JavaScript Engine, defect)

x86_64
macOS
defect
Not set
critical

Tracking

()

RESOLVED FIXED
mozilla14

People

(Reporter: jruderman, Assigned: billm)

Details

(Keywords: assertion, testcase)

Attachments

(2 files)

Attached file testcase
1. Install the new new version of 
  https://www.squarefree.com/extensions/domFuzzLite3.xpi

2. Set

user_pref("javascript.options.mem.gc_per_compartment", false);

3. Load the testcase.

Result:
Assertion failure: rt->gcMode != JSGC_MODE_GLOBAL, at jsgc.cpp:3618
Assignee: general → wmccloskey
Attached patch fixSplinter Review
Attachment #609455 - Flags: review?(igor)
Sorry, hit enter too fast.

It seems silly that callers of js::GC have to worry about the GC mode. This patch just moves the checks into Collect, so that we only have to remember to check in one place.
Attachment #609455 - Flags: review?(igor) → review+
https://hg.mozilla.org/mozilla-central/rev/e09acca2c2c1
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: