Closed Bug 710946 Opened 14 years ago Closed 14 years ago

BaseShape::getterObj (and setterObj) are not write barriered

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla11

People

(Reporter: terrence, Assigned: terrence)

References

Details

Attachments

(1 file)

These fields are immutable, so they do not necessarily need a barrier for incremental collection -- they do, however, need a barrier for generational collection, and for reliable verification of the barriers. It would be nice to make these HeapPtr's, rather than manually calling the barrier functions, but the fields are unioned with a function pointer, so this is not trivial.
This is how we are adding barriers for the unioned fields in String, so I think this is probably fine.
Assignee: general → terrence
Status: NEW → ASSIGNED
Attachment #582155 - Flags: review?(wmccloskey)
Comment on attachment 582155 [details] [diff] [review] v1: post barrier BaseShape::getterObj and setterObj Yeah, I guess this is fine.
Attachment #582155 - Flags: review?(wmccloskey) → review+
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla11
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: