Closed Bug 385521 Opened 17 years ago Closed 3 years ago

leaksoup trace-malloc reader shouldn't use NS_QuickSort

Categories

(Core :: XPCOM, defect)

defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: dbaron, Unassigned)

References

()

Details

(Keywords: perf)

The leaksoup trace-malloc reader uses NS_QuickSort to sort lists by numbers that it assigned to nodes in order (of various graph traversals).  It should instead allocate an array for both of these sorts and fill in the array as it assigns the numbers.
Whiteboard: [good first bug][mentor=dbaron][lang=c++]
/tools/trace-malloc/leaksoup.cpp
    * line 44 -- #include "nsQuickSort.h"
    * line 244 -- NS_QuickSort(sorted_nodes, count, sizeof(AllocationNode*),
    * line 319 -- NS_QuickSort(sorted_nodes, count, sizeof(AllocationNode*),
Hello, my friend and I would like to help out Mozilla, and we believe this is a good bug for us to start with. Is this bug still open? And if so, what are the first steps we should to get started.
I didn't mark this as [good first bug], and I don't think it is; I think good first bugs are much more likely to be ones where the purpoe of fixing the bug is more apparent (unlike, say, fixing a performance problem in a memory leak debugging tool used by only a few developers).
Whiteboard: [good first bug][mentor=dbaron][lang=c++]
Assignee: dbaron → nobody

trace-malloc was removed in bug 1014341.

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.