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

Issue 2965823002: [profiler, linux/android] Check whether a sample is ARM or Thumb code to decide which FP register t… (Closed)

Created:
3 years, 5 months ago by rmacnak
Modified:
3 years, 5 months ago
Reviewers:
zra
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

[profiler, linux/android] Check whether a sample is ARM or Thumb code to decide which FP register to load. Android and Linux use R11 as the FP register in ARM code and R7 in Thumb code. We've been assuming all code in our process is ARM and reading R11 as FP. This made our stack walks fail if they started in Thumb code. This issue does not arise on iOS, because its ABI uses R7 as the FP register for both ARM and Thumb code. R=zra@google.com Committed: https://github.com/dart-lang/sdk/commit/daa38a2ea21d290e45adb509dc60418b22ec7eba

Patch Set 1 #

Total comments: 4

Patch Set 2 : explicit compare #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -2 lines) Patch
M runtime/vm/signal_handler_android.cc View 1 1 chunk +8 lines, -1 line 0 comments Download
M runtime/vm/signal_handler_linux.cc View 1 1 chunk +8 lines, -1 line 0 comments Download

Messages

Total messages: 7 (3 generated)
rmacnak
3 years, 5 months ago (2017-06-30 21:28:14 UTC) #3
zra
lgtm w/ nit https://codereview.chromium.org/2965823002/diff/1/runtime/vm/signal_handler_android.cc File runtime/vm/signal_handler_android.cc (right): https://codereview.chromium.org/2965823002/diff/1/runtime/vm/signal_handler_android.cc#newcode40 runtime/vm/signal_handler_android.cc:40: if (mcontext.arm_cpsr & (1 << 5)) ...
3 years, 5 months ago (2017-06-30 21:35:31 UTC) #4
rmacnak
https://codereview.chromium.org/2965823002/diff/1/runtime/vm/signal_handler_android.cc File runtime/vm/signal_handler_android.cc (right): https://codereview.chromium.org/2965823002/diff/1/runtime/vm/signal_handler_android.cc#newcode40 runtime/vm/signal_handler_android.cc:40: if (mcontext.arm_cpsr & (1 << 5)) { On 2017/06/30 ...
3 years, 5 months ago (2017-06-30 21:44:21 UTC) #5
rmacnak
3 years, 5 months ago (2017-07-05 16:43:18 UTC) #7
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
daa38a2ea21d290e45adb509dc60418b22ec7eba (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698