Closed
Bug 936710
Opened 11 years ago
Closed 11 years ago
Add an option to propagate flags to nested shells
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla28
People
(Reporter: bbouvier, Assigned: bbouvier)
References
Details
(Whiteboard: [qa-])
Attachments
(1 file, 3 obsolete files)
(deleted),
patch
|
bbouvier
:
review+
|
Details | Diff | Splinter Review |
Generic enough for future purpose, useful enough for propagating --no-sse4 in bug 935791.
Attachment #829611 -
Flags: review?(luke)
Comment 1•11 years ago
|
||
strdup() is malloc, so this leaks memory, right?
Assignee | ||
Comment 2•11 years ago
|
||
Doh, thanks Jason! I am so used to the realm of the JITs, where the |new| operators are overloaded to use temporary arenas, that I forgot about basic memory management in the shell. Shame on me...
As I understand it, even if there is *still* a use of strdup here, it's not a leak as the AutoCStringVector deallocates strings in its destructor. Moreover, it is the way it has been done for the other arguments that are passed to the nested shell.
Attachment #829611 -
Attachment is obsolete: true
Attachment #829611 -
Flags: review?(luke)
Attachment #830067 -
Flags: review?(luke)
Updated•11 years ago
|
Attachment #830067 -
Flags: review?(luke) → review+
Assignee | ||
Comment 3•11 years ago
|
||
Thanks! Filled the r= field, carrying forward the r+ (still can't push directly...)
Attachment #830067 -
Attachment is obsolete: true
Attachment #830374 -
Flags: review+
Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Comment 4•11 years ago
|
||
Benjamin: your patch never calls PropagateFlagToNestedShells() and nevers writes to sPropagatedFlags. Will a subsequent patch use that code? Also, should sPropagatedFlags be static, not global?
Flags: needinfo?(benj)
Updated•11 years ago
|
Flags: needinfo?(benj)
Assignee | ||
Comment 5•11 years ago
|
||
Indeed, it's better for it to be a static variable. This feature is motivated by bug 935791 which will use it.
Attachment #830374 -
Attachment is obsolete: true
Attachment #830445 -
Flags: review+
Comment 6•11 years ago
|
||
Keywords: checkin-needed
Comment 7•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
Updated•11 years ago
|
Whiteboard: [qa-]
You need to log in
before you can comment on or make changes to this bug.
Description
•