Closed Bug 665781 Opened 13 years ago Closed 13 years ago

Do not shrink XML arrays during the GC

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: igor, Assigned: igor)

Details

(Whiteboard: fixed-in-tracemonkey)

Attachments

(1 file)

Currently XMLArray stored in XML instances are shrunk during the GC to free unused capacity. This complicates the implementation of the parallel marking in bug 638660. As shrinking mutates the state this may require an extra locking during the marking depending on implementation details.

It would be nice to remove this code. If we get regression reports, we could change the code to do the shrinking when removing the XML elements in the same way as we manage the capacity of dense arrays.
Attached patch v1Splinter Review
Here is a trivial patch. Lets see if we have some tests that depends on xml shrinking during the GC.
Comment on attachment 540615 [details] [diff] [review]
v1

The patch passed the try server.
Attachment #540615 - Flags: review?(anygregor)
I don't think I am the right person for the review here because I don't have any background information about this "trim" behavior. This patch makes an important improvement for the parallel marking patch and we should take it if there are no serious arguments against it. 

Brendan or Jason could you do the review?
Attachment #540615 - Flags: review?(anygregor) → review+
http://hg.mozilla.org/tracemonkey/rev/0428dbdf3d58
Whiteboard: fixed-in-tracemonkey
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: