Closed Bug 835376 Opened 11 years ago Closed 11 years ago

DumpCompleteHeap seems unused. Also, how does it work?

Categories

(Core :: XPConnect, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: bjacob, Unassigned)

Details

There is a global DumpCompleteHeap function that seems unused:

http://mxr.mozilla.org/mozilla-central/source/js/xpconnect/src/nsXPConnect.cpp#2743

Should we remove it or was it intentionally added (perhaps to be called from a debugger?)

Also, could you please explain what it does? The name suggests that it would dump the JS heap, but seeing that it only calls the cycle collector, it's not clear to me how it would achieve that?

Note: this was added in bug 781700, by khuey, r=bent.
The cycle collector dumps the JS heap when given a non-null listener.

The comment a few functions up says: "These are here to be callable from a debugger"
Ah OK. Thanks!
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.