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)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla12
People
(Reporter: sfink, Unassigned)
Details
Attachments
(1 file, 1 obsolete file)
6.17 KB,
patch
|
billm
:
review+
|
Details | Diff | Splinter Review |
Testing an arbitrary pointer for valid GCThing-ness is useful for things other tan the GC
Reporter | ||
Comment 1•14 years ago
|
||
Reporter | ||
Updated•14 years ago
|
Attachment #581439 -
Flags: review?(wmccloskey)
Reporter | ||
Comment 2•14 years ago
|
||
Testing an arbitrary pointer for valid GCThing-ness is useful for things other tan the GC
Reporter | ||
Updated•14 years ago
|
Attachment #581439 -
Attachment is obsolete: true
Attachment #581439 -
Flags: review?(wmccloskey)
Reporter | ||
Comment 3•14 years ago
|
||
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.
Description
•