Closed Bug 677487 Opened 13 years ago Closed 12 years ago

Add a public getter for mRefCount to nsStringBuffer

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 723799

People

(Reporter: mounir, Unassigned)

References

Details

nsAttrValue tries to compute its size in the heap by computing a nsStringBuffer size but the size should be divided by the number of object owning the object.

An alternative might be to do this computation in nsDOMMemoryReporter which could be a friend of nsStringBuffer.
Bug 723799's patch will fix this -- nsStringBuffer::SizeOfIncludingThisIfUnshared() avoids the double-counting.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.