Closed Bug 866778 Opened 11 years ago Closed 11 years ago

GC: Make autorooter for HashableValue contain its value

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla23

People

(Reporter: jonco, Assigned: jonco)

References

Details

Attachments

(1 file)

Attached patch Proposed changes (deleted) — Splinter Review
Change HashableValue::AutoRooter to AutoHashableValueRooter and make it contain its HashableValue rather than a pointer to it. This fixes the rooting hazards reported in MapObject.cpp
Attachment #743145 - Flags: review?(sphink)
Comment on attachment 743145 [details] [diff] [review] Proposed changes Review of attachment 743145 [details] [diff] [review]: ----------------------------------------------------------------- ::: js/src/gc/RootMarking.cpp @@ +626,2 @@ > { > + MarkValueRoot(trc, reinterpret_cast<Value*>(&value), "HashableValue::AutoRooter"); doc string should be "AutoHashableValueRooter" now
Attachment #743145 - Flags: review?(sphink) → review+
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla23
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: