Closed
Bug 871444
Opened 11 years ago
Closed 11 years ago
Yarr Interpreter custom allocator may misalign ParenthesesDisjunctionContext
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
mozilla24
People
(Reporter: martin, Unassigned)
Details
Attachments
(1 file)
797 bytes,
patch
|
sstangl
:
review+
gaston
:
feedback+
|
Details | Diff | Splinter Review |
ParenthesesDisjunctionContext contains a pointer (next) so it may need proper alignment, for example on sparc64. Simple fix is to keep alignment with all allocations (see attached patch).
If the small space wasted is considered inappropriate, we should create a macro like
JS_REQUIRED_ALIGNMENT_OF()
which could return 0 on all archs that might align, but do not necessarily require it, and is identical to JS_ALIGNMENT_OF() on archs requiring strict alignment.
[teaser: this bug report brought to you via aurora running on NetBSD/current sparc64]
Comment 1•11 years ago
|
||
Comment on attachment 748684 [details] [diff] [review]
Roundup allocation size to keep required alignment
Let's try to get feedback on this too, or even review!
Attachment #748684 -
Flags: review?(luke)
Comment 2•11 years ago
|
||
Comment on attachment 748684 [details] [diff] [review]
Roundup allocation size to keep required alignment
Fwiw, this helps fixing firefox on sparc64 for me too, as per bug #840242 comment 15.
Pushed to try in https://tbpl.mozilla.org/?tree=Try&rev=e62d4aee3e38
Attachment #748684 -
Flags: feedback+
Comment 3•11 years ago
|
||
Comment on attachment 748684 [details] [diff] [review]
Roundup allocation size to keep required alignment
Forwarding to Sean since this is in Yarr.
Attachment #748684 -
Flags: review?(luke) → review?(sstangl)
Comment 4•11 years ago
|
||
Comment on attachment 748684 [details] [diff] [review]
Roundup allocation size to keep required alignment
Review of attachment 748684 [details] [diff] [review]:
-----------------------------------------------------------------
A small increase in interpreter memory is acceptable to keep platforms consistent and has little effect since Yarr code nearly exclusively executes in the Yarr JIT on supported platforms. Thanks for fixing this!
Attachment #748684 -
Flags: review?(sstangl) → review+
Comment 5•11 years ago
|
||
I just noticed that the patch uses a tab instead of spaces, but I'll fix that when committing.
Keywords: checkin-needed
Updated•11 years ago
|
Keywords: checkin-needed
Comment 6•11 years ago
|
||
Comment 7•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla24
You need to log in
before you can comment on or make changes to this bug.
Description
•