Closed
Bug 377895
Opened 18 years ago
Closed 17 years ago
XPConnect still has #ifdef GC_MARK_DEBUG
Categories
(Core :: XPConnect, defect)
Core
XPConnect
Tracking
()
RESOLVED
FIXED
People
(Reporter: peterv, Assigned: igor)
References
Details
They should probably be removed and the code inside the ifdefs rewritten or removed (GC_MARK_DEBUG was removed from SpiderMonkey in bug 375270).
Reporter | ||
Updated•18 years ago
|
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → DUPLICATE
Assignee | ||
Comment 2•18 years ago
|
||
I reopen the bug since the bug 378255 is about restoring dumping heap functionality that was available with GC_MARK_DEBUG. This is different from this bug since with bug 378261 fixed one can compile with GC_MARK_DEBUG defined and GC_MARK_DEBUG code in xpcconnect would provide better more descriptive dumps for any user of JS_DumpHeap.
So the idea is to make the debug info available in a generic DEBUG build.
Comment 3•18 years ago
|
||
So... I think a lot of these could in fact just use DEBUG, since they just change what's passed to the JSAPI rooting methods, right?
Assignee | ||
Comment 4•18 years ago
|
||
(In reply to comment #3)
> So... I think a lot of these could in fact just use DEBUG, since they just
> change what's passed to the JSAPI rooting methods, right?
In principle the answer is yes, one can replace GC_MARK_DEBUG with just DEBUG, but that may result in a significant slowdown due to extra name allocations. The right solution is to replace calls to JS_AddNamedRoot/JS_LockGCThing via a custom data structure for xpconnect roots and use the API proposed in bug 340212 to integrate the data structure with tracing/marking. This should not only saves memory in an optimized build but also allow to provide tracing info in a generic DEBUG build without strdup overhead.
Assignee: nobody → igor
Status: REOPENED → NEW
Reporter | ||
Comment 5•17 years ago
|
||
Can we either close this bug or change its summary? Looks like GC_MARK_DEBUG is gone.
Assignee | ||
Comment 6•17 years ago
|
||
This is indeed fixed now as check ins for bug 340212 and bug 379220 removed all GC_MARK_DEBUG code.
Status: NEW → RESOLVED
Closed: 18 years ago → 17 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•