Created attachment 533491 [details] [diff] [review]
This is spun off from bug 571249, which will use the API to count how much heap memory is used by object slot arrays and string characters.
I'm carrying over the r+ from Igor, and adding my own r+ for the minor changes that have happened since Igor's review (the per-kind and per-compartment restrictions, and hoisting the GetFinalizableTraceKind call out of the loop).
If 656261 lands in the meantime, this patch'll need updating.
I really want to land this before cdleary does the TM-to-mc merge on Friday, so that bug 571249 can make it into Firefox 6. Hopefully we three (njn, igor, billm) can co-ordinate things so this happens.
(In reply to comment #1)
> If 656261 lands in the meantime, this patch'll need updating.
It looks I need more work with the patch for the bug 656261. If I will fix it today, I will update the patch here as well. If not, just proceed with landing here.
cdleary-bot mozilla-central merge info: