Closed Bug 1463679 Opened 7 years ago Closed 4 years ago

GCManagedDeletePolicy is a misnomer

Categories

(Core :: JavaScript: GC, enhancement, P5)

enhancement

Tracking

()

RESOLVED INVALID

People

(Reporter: jonco, Unassigned)

Details

We have this delete policy for things that contain GC pointers but have non-GC lifetime (i.e. they can be destroyed outside of a GC) which will ensure GC invariants are maintained by invoking write barriers for GC pointers on destruction. Note that destruction can also happen part way through initialisation if there is an error. It's arguable whether we need to do this in that case (it depends on whether any of the partly-initialised state can escape) but sometimes it's better to be safe than sorry. It doesn't help that cases like these are not always covered by our tests. Anyway, this is more like a delete policy for non-GC lifetime things than contain GC pointers. So I'm not sure what this should be called but GCManagedDeletePolicy doesn't seem right.

GCManagedDeletePolicy has been removed.

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