Closed
Bug 817812
Opened 13 years ago
Closed 13 years ago
Fix --enable-root-analysis compile
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla20
People
(Reporter: sfink, Assigned: sfink)
Details
Attachments
(1 file)
4.29 KB,
patch
|
terrence
:
review+
sfink
:
checkin+
|
Details | Diff | Splinter Review |
The recent jsgc.cpp splitup removed some functions that my rooting analysis optimization depended on.
Assignee | ||
Comment 1•13 years ago
|
||
This patch exposes a simplified IsAddressableGCThing overload and uses it.
Attachment #687946 -
Flags: review?(terrence)
Comment 2•13 years ago
|
||
Comment on attachment 687946 [details] [diff] [review]
Fix --enable-root-analysis compile
Review of attachment 687946 [details] [diff] [review]:
-----------------------------------------------------------------
Seems fine to me.
::: js/src/gc/GCInternals.h
@@ +83,5 @@
> IncrementalSafety
> IsIncrementalGCSafe(JSRuntime *rt);
>
> +bool
> +IsAddressableGCThing(JSRuntime *rt, uintptr_t w);
At some point in the future, this is going to be the last link holding the conservative GC testing alive. Put this under #ifdef ROOT_ANALYIS so that it's perfectly clear what is depending on the functionality.
::: js/src/gc/Verifier.cpp
@@ +283,5 @@
>
> JS_ASSERT(stackMin <= stackEnd);
> CheckStackRootsRangeAndSkipIon(rt, stackMin, stackEnd, firstToScan, rooters.end());
> CheckStackRootsRange(rt, cgcd->registerSnapshot.words,
> + mozilla::ArrayEnd(cgcd->registerSnapshot.words),
This is just the verifier, we should |using namespace mozilla;| at the top.
Attachment #687946 -
Flags: review?(terrence) → review+
Assignee | ||
Updated•13 years ago
|
Attachment #687946 -
Flags: checkin+
Assignee | ||
Comment 3•13 years ago
|
||
Comment 4•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla20
You need to log in
before you can comment on or make changes to this bug.
Description
•