Closed Bug 683389 Opened 13 years ago Closed 13 years ago

handle new cases of JSTRACE in a more graceful fashion

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 674251

People

(Reporter: mccr8, Unassigned)

Details

Twice in the past couple of weeks we've had JSTRACE things added, for JS scripts and type inference, without cases being added to JS_PrintTraceThingInfo, which causes JS_DumpHeap to assert.  We should add some kind of test to check for that, either some kind of JS_assert, or a crash test that calls JS_DumpHeap.  I guess that since this is just debug logging code, so we could alternatively just fail more quietly.  But that sounds bad.
As my patch for the bug 674251 has the same problems with JSTRACE_SCRIPT I am going to update the patch there and add JSGCTraceKind enum. Then at least with GCC we get warnings about missing labels.
Yeah, that sounds like a much better fix than anything I had thought of!
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.