Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(151)

Issue 722423003: Fix stack alignment of child threads on ARM. (Closed)

Created:
6 years ago by mazda
Modified:
6 years ago
Reviewers:
Mark Seaborn, hamaji
CC:
native-client-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/native_client/src/native_client.git@master
Project:
nacl
Visibility:
Public.

Description

Fix stack alignment of child threads on ARM. It is intended that a child thread starts with the stack pointer aligned with 16-byte boundary, but it was misaligned by 4 bytes on ARM due to pop instruction. This CL fixes it by using ldr instruction instead. BUG= https://code.google.com/p/nativeclient/issues/detail?id=4016 TEST=./scons bitcode=1 nonsfi_nacl=1 pnacl_generate_pexe=0 platform=arm \ run_stack_alignment_asm_test TEST=./scons bitcode=1 nonsfi_nacl=1 pnacl_generate_pexe=0 platform=arm \ nonsfi_tests TEST=./stack_alignment_asm_test.nexe # On a real ARM machine TEST=./thread_test.nexe # On a real ARM machine Committed: http://src.chromium.org/viewvc/native_client?view=rev&revision=14203

Patch Set 1 #

Patch Set 2 : Add run_stack_alignment_asm_test to nonsfi_tests #

Total comments: 2

Patch Set 3 : fix comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -2 lines) Patch
M SConstruct View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/nonsfi/linux/linux_pthread_private.c View 1 2 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
mazda
PTAL
6 years ago (2014-12-10 10:48:26 UTC) #2
Mark Seaborn
LGTM https://codereview.chromium.org/722423003/diff/20001/src/nonsfi/linux/linux_pthread_private.c File src/nonsfi/linux/linux_pthread_private.c (right): https://codereview.chromium.org/722423003/diff/20001/src/nonsfi/linux/linux_pthread_private.c#newcode98 src/nonsfi/linux/linux_pthread_private.c:98: * Load start_func from the stack and call ...
6 years ago (2014-12-10 16:28:21 UTC) #3
hamaji
lgtm Nice. Thanks for fixing this issue...
6 years ago (2014-12-11 01:37:39 UTC) #4
mazda
Thank you for the review. https://codereview.chromium.org/722423003/diff/20001/src/nonsfi/linux/linux_pthread_private.c File src/nonsfi/linux/linux_pthread_private.c (right): https://codereview.chromium.org/722423003/diff/20001/src/nonsfi/linux/linux_pthread_private.c#newcode98 src/nonsfi/linux/linux_pthread_private.c:98: * Load start_func from ...
6 years ago (2014-12-11 03:41:49 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/722423003/40001
6 years ago (2014-12-11 03:42:54 UTC) #7
commit-bot: I haz the power
6 years ago (2014-12-11 16:16:57 UTC) #8
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
http://src.chromium.org/viewvc/native_client?view=rev&revision=14203

Powered by Google App Engine
This is Rietveld 408576698