Closed Bug 643760 Opened 15 years ago Closed 12 years ago

Suspected stack misalignment on ARM with methodjit

Categories

(Core :: JavaScript Engine, defect)

ARM
Linux
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: glandium, Unassigned)

References

Details

On ARM EABI, stack needs to be 64 bits aligned. While this works most of the time, it can lead to weird problems with 64 bits arguments in called functions much downwards the stack. I suspect the jaegermonkey trampoline misaligns the stack pointer. http://mxr.mozilla.org/mozilla-central/source/js/src/methodjit/MethodJIT.cpp#475
(In reply to comment #0) > On ARM EABI, stack needs to be 64 bits aligned. While this works most of the > time, it can lead to weird problems with 64 bits arguments in called functions > much downwards the stack. > > I suspect the jaegermonkey trampoline misaligns the stack pointer. > http://mxr.mozilla.org/mozilla-central/source/js/src/methodjit/MethodJIT.cpp#475 It looks to me like 19 words are being pushed. So we should push one more word?
(In reply to comment #1) > (In reply to comment #0) > > On ARM EABI, stack needs to be 64 bits aligned. While this works most of the > > time, it can lead to weird problems with 64 bits arguments in called functions > > much downwards the stack. > > > > I suspect the jaegermonkey trampoline misaligns the stack pointer. > > http://mxr.mozilla.org/mozilla-central/source/js/src/methodjit/MethodJIT.cpp#475 > > It looks to me like 19 words are being pushed. So we should push one more word? I would say so.
For reference, bug 545747 is the kind of problems you can run into with a non properly aligned stack. That was subtly breaking nsNavBookmarks::GetFolderIdForItem.
See Also: → 545747
JM was removed.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.