Closed Bug 664140 Opened 13 years ago Closed 13 years ago

Split GCHeap::AddrToBlock into BaseAddr and InteriorAddr variants

Categories

(Tamarin Graveyard :: Garbage Collection (mmGC), defect, P3)

defect

Tracking

(Not tracked)

RESOLVED FIXED
Q3 11 - Serrano

People

(Reporter: pnkfelix, Assigned: pnkfelix)

References

Details

(Whiteboard: has-patch)

Attachments

(1 file)

GCHeap::AddrToBlock currently doesn't work on addresses beyond the first block in the object. Tommy says most of its callers are passing in the base address for the object. So lets tighten up its contract (by making its assertion check that the given address matches the base address) and add a new variant for the callers that are using the non-base address; that new variant should be generalized as described in Bug 663508, comment 1.
Blocks: 663508
Tommy: obviously if you land Bug 664133 then I'll remove the GC.cpp portion of this patch. If requested, I'll look into adding a selftest, but my current plan is just to rely on the selftest already planned for Bug 663508 (see attachment 538905 [details] [diff] [review] ) to exercise this functionality, rather than worry about making an individual unit-test for these two functions.
Assignee: nobody → fklockii
Status: NEW → ASSIGNED
Attachment #539225 - Flags: superreview?(lhansen)
Attachment #539225 - Flags: review?(treilly)
Attachment #539225 - Flags: review?(treilly) → review+
Target Milestone: --- → Q3 11 - Serrano
Flags: flashplayer-qrb+
Flags: flashplayer-injection-
Flags: flashplayer-bug-
Priority: -- → P3
Whiteboard: has-patch
Pushed to Serrano. tamarin-redux-serrano changeset: 6320:6995cfb192ae user: Felix S Klock II <fklockii@adobe.com> summary: Bug 664140: split GCHeap::AddrToBlock into BaseAddr and InteriorAddr variants. (r=treilly, sr pending lhansen). http://asteam.corp.adobe.com/hg/tamarin-redux-serrano/rev/6995cfb192ae
Attachment #539225 - Flags: superreview?(lhansen) → superreview+
changeset: 6407:1735c8e8ba1c user: Felix S Klock II <fklockii@adobe.com> summary: Bug 664140: split GCHeap::AddrToBlock into input-specific variants (r=treilly, sr=lhansen). http://hg.mozilla.org/tamarin-redux/rev/1735c8e8ba1c
Status: ASSIGNED → 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

Created:
Updated:
Size: