Closed Bug 710414 Opened 14 years ago Closed 14 years ago

Split out the conservative testing for a GCThing from marking it

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla12

People

(Reporter: sfink, Unassigned)

Details

Attachments

(1 file, 1 obsolete file)

Testing an arbitrary pointer for valid GCThing-ness is useful for things other tan the GC
Attachment #581439 - Flags: review?(wmccloskey)
Testing an arbitrary pointer for valid GCThing-ness is useful for things other tan the GC
Attachment #581439 - Attachment is obsolete: true
Attachment #581439 - Flags: review?(wmccloskey)
Comment on attachment 581465 [details] [diff] [review] Split out the conservative testing for a GCThing from marking it Removed the InFreeList() part as we discussed. It required returning the ArenaHeader pointer too; let me know if you think that's too ugly.
Attachment #581465 - Flags: review?(wmccloskey)
Comment on attachment 581465 [details] [diff] [review] Split out the conservative testing for a GCThing from marking it Review of attachment 581465 [details] [diff] [review]: ----------------------------------------------------------------- ::: js/src/jsgc.cpp @@ +906,5 @@ > > /* > + * Tests whether w is a live GC thing. Returns CGCT_VALID and the thingKind and > + * address of the beginning of the GCthing if so. Otherwise returns the reason > + * for rejection. Could you update the comment? Maybe replace "live" with "(possibly dead)". @@ +911,3 @@ > */ > inline ConservativeGCTest > +IsAddressibleGCThing(JSRuntime *rt, jsuword w, Addressible -> Addressable, according to Google.
Attachment #581465 - Flags: review?(wmccloskey) → review+
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla12
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: