Closed
Bug 556324
Opened 14 years ago
Closed 7 months ago
Encapsulate the GC heap (js::GCHeap)
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
INCOMPLETE
People
(Reporter: jorendorff, Unassigned)
Details
Per bug 553671 comment 9.
Comment 1•14 years ago
|
||
I can (have) lifted out all the js* fields from JSRuntime and made a new struct JSGCState. As a result some of the functions in jsgc.cpp that formerly took a JSRuntime* param can have that slimmed down to a JSGCState* param. Is this a plausible starting point, or did you mean something entirely different?
Comment 2•14 years ago
|
||
Just for completeness the description from the Wiki: Factor GC-related code into a class, js::GCHeap (bug 556324). Carve out a second class, GCSubheap, so that a single GCHeap can have several GCSubheaps, each of which handles its own set of VM pages from which individual GC things may be allocated. Give each compartment its own GCSubheap. Allocate every object, double, and string from the GCSubheap for the compartment where it will live.
Assignee | ||
Updated•10 years ago
|
Assignee: general → nobody
Updated•2 years ago
|
Severity: normal → S3
Updated•7 months ago
|
Status: NEW → RESOLVED
Closed: 7 months ago
Resolution: --- → INCOMPLETE
You need to log in
before you can comment on or make changes to this bug.
Description
•