Closed Bug 639727 Opened 9 years ago Closed 9 years ago
don't try to shrink object slots during GC marking
Instead of checking at every GC where we have to shrink slots, do so after having deleted a property from native objects. We give objects some wriggle room and only shrink once at least 25% of slots are unused. This code only hits for native objects (not arrays). I don't think is a particularly important path to shrink early, the shape associated with the property we delete uses many times more memory then the free slot itself.
Assignee: general → gal
Attachment #517627 - Flags: review?(brendan) → review?(bhackett1024)
Attachment #517627 - Flags: review?(bhackett1024) → review+
Status: NEW → RESOLVED
Closed: 9 years ago
OS: Mac OS X → Windows 7
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.