Closed
Bug 845519
Opened 11 years ago
Closed 11 years ago
Rootanalysis build failures
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla22
People
(Reporter: sfink, Assigned: sfink)
References
Details
Attachments
(4 files)
2.32 KB,
patch
|
bhackett1024
:
review+
sfink
:
checkin+
|
Details | Diff | Splinter Review |
36.22 KB,
patch
|
bhackett1024
:
review+
sfink
:
checkin+
|
Details | Diff | Splinter Review |
4.04 KB,
patch
|
terrence
:
review+
sfink
:
checkin+
|
Details | Diff | Splinter Review |
2.11 KB,
patch
|
terrence
:
review+
sfink
:
checkin+
|
Details | Diff | Splinter Review |
The rootanalysis build is still failing.
Assignee | ||
Comment 1•11 years ago
|
||
The build is being run on gcc 4.5 with optimization. That triggers a reordering of operations within Rooted<JSObject*> and Rooted<DerivedFromJSObject*>'s constructors. This patch changes the types of their fields to be the same.
Attachment #718624 -
Flags: review?(bhackett1024)
Updated•11 years ago
|
Attachment #718624 -
Flags: review?(bhackett1024) → review+
Assignee | ||
Comment 2•11 years ago
|
||
getType(cx) is used all over the place without checking its return value. Getting the right return value for all of the places it can fail is tricky.
Attachment #718626 -
Flags: review?(bhackett1024)
Comment 3•11 years ago
|
||
Comment on attachment 718626 [details] [diff] [review] Check getType(cx) return value (also fixes rooting hazard) Review of attachment 718626 [details] [diff] [review]: ----------------------------------------------------------------- ::: js/src/ion/IonBuilder.cpp @@ +3871,5 @@ > IonBuilder::getSingletonPrototype(JSFunction *target) > { > if (!target->hasSingletonType()) > return NULL; > + types::TypeObject *targetType = target->getType(cx); targetType should be null checked here ::: js/src/jsobj.h @@ +445,5 @@ > * Constructs a new, unique shape for the object. > */ > static inline bool setSingletonType(JSContext *cx, js::HandleObject obj); > > + inline js::Unrooted<js::types::TypeObject*> getType(JSContext *cx); rm the Unrooted. I think the plan is to get rid of these, it'd be good to avoid adding more. ::: js/src/jsobjinlines.h @@ +757,5 @@ > obj->type_ = type; > return true; > } > > +inline js::Unrooted<js::types::TypeObject*> Ditto.
Attachment #718626 -
Flags: review?(bhackett1024) → review+
Assignee | ||
Comment 4•11 years ago
|
||
Hm. Should we have a bug on file?
Attachment #718694 -
Flags: review?(terrence)
Updated•11 years ago
|
Blocks: ExactRooting
Assignee | ||
Comment 5•11 years ago
|
||
(In reply to Brian Hackett (:bhackett) from comment #3) > Comment on attachment 718626 [details] [diff] [review] > Check getType(cx) return value (also fixes rooting hazard) > > targetType should be null checked here fixed > rm the Unrooted. I think the plan is to get rid of these, it'd be good to > avoid adding more. sorry; I meant to rip these out. They were from the initial investigation.
Comment 6•11 years ago
|
||
Comment on attachment 718694 [details] [diff] [review] Use SkipRoots for jschar pointers until we need to start moving them Review of attachment 718694 [details] [diff] [review]: ----------------------------------------------------------------- ::: js/src/frontend/TokenStream.h @@ +757,5 @@ > const jschar *base_; /* base of buffer */ > const jschar *limit_; /* limit for quick bounds check */ > const jschar *ptr; /* next char to get */ > + > + // We are not yet moving strings Missing a . at the end.
Attachment #718694 -
Flags: review?(terrence) → review+
Assignee | ||
Comment 7•11 years ago
|
||
The stack of patches in this bug are enough to get a green root analysis build. https://tbpl.mozilla.org/?tree=Try&rev=f4de277690fd
Attachment #719636 -
Flags: review?(terrence)
Updated•11 years ago
|
Attachment #719636 -
Flags: review?(terrence) → review+
Assignee | ||
Updated•11 years ago
|
Attachment #718624 -
Flags: checkin+
Assignee | ||
Updated•11 years ago
|
Attachment #718626 -
Flags: checkin+
Assignee | ||
Updated•11 years ago
|
Attachment #718694 -
Flags: checkin+
Assignee | ||
Updated•11 years ago
|
Attachment #719636 -
Flags: checkin+
Assignee | ||
Comment 8•11 years ago
|
||
http://hg.mozilla.org/integration/mozilla-inbound/rev/bd745ff1a2e9 http://hg.mozilla.org/integration/mozilla-inbound/rev/24f8ec282019 http://hg.mozilla.org/integration/mozilla-inbound/rev/b93b177e2a9d http://hg.mozilla.org/integration/mozilla-inbound/rev/537fd7f9486b
Comment 9•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/537fd7f9486b https://hg.mozilla.org/mozilla-central/rev/b93b177e2a9d https://hg.mozilla.org/mozilla-central/rev/24f8ec282019 https://hg.mozilla.org/mozilla-central/rev/bd745ff1a2e9
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla22
You need to log in
before you can comment on or make changes to this bug.
Description
•