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

Issue 927363004: Verify/document assumption about stack resource addresses. (Closed)

Created:
5 years, 10 months ago by koda
Modified:
5 years, 10 months ago
Reviewers:
zra, Ivan Posva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Verify/document assumption about stack resource addresses. We assume that addresses of stack resources refer to the actual stack and are ordered accordingly. Using the AddressSanitizer with detect_stack_use_after_return will break this assumption. R=zra@google.com Committed: https://code.google.com/p/dart/source/detail?r=43858

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Total comments: 2

Patch Set 6 : #

Total comments: 4

Patch Set 7 : #

Patch Set 8 : #

Total comments: 1

Patch Set 9 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -22 lines) Patch
M runtime/vm/allocation.h View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M runtime/vm/allocation.cc View 1 2 3 4 5 6 1 chunk +25 lines, -0 lines 0 comments Download
M runtime/vm/exceptions.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -5 lines 0 comments Download
M runtime/vm/longjump.cc View 1 2 3 4 5 6 1 chunk +1 line, -5 lines 0 comments Download
M runtime/vm/simulator_arm.cc View 1 2 3 4 5 1 chunk +1 line, -4 lines 0 comments Download
M runtime/vm/simulator_arm64.cc View 1 2 3 4 1 chunk +1 line, -4 lines 0 comments Download
M runtime/vm/simulator_mips.cc View 1 2 3 4 1 chunk +1 line, -4 lines 0 comments Download

Messages

Total messages: 10 (2 generated)
koda
5 years, 10 months ago (2015-02-17 18:29:01 UTC) #1
zra
lgtm with question https://codereview.chromium.org/927363004/diff/60001/runtime/vm/exceptions.cc File runtime/vm/exceptions.cc (right): https://codereview.chromium.org/927363004/diff/60001/runtime/vm/exceptions.cc#newcode293 runtime/vm/exceptions.cc:293: ASSERT(reinterpret_cast<uword>(current) > stack_pointer); Is this the ...
5 years, 10 months ago (2015-02-17 19:00:23 UTC) #2
koda
https://codereview.chromium.org/927363004/diff/60001/runtime/vm/exceptions.cc File runtime/vm/exceptions.cc (right): https://codereview.chromium.org/927363004/diff/60001/runtime/vm/exceptions.cc#newcode293 runtime/vm/exceptions.cc:293: ASSERT(reinterpret_cast<uword>(current) > stack_pointer); On 2015/02/17 19:00:23, zra wrote: > ...
5 years, 10 months ago (2015-02-17 19:07:54 UTC) #3
zra
https://codereview.chromium.org/927363004/diff/80001/runtime/vm/simulator_arm.cc File runtime/vm/simulator_arm.cc (right): https://codereview.chromium.org/927363004/diff/80001/runtime/vm/simulator_arm.cc#newcode3859 runtime/vm/simulator_arm.cc:3859: rm extra whitespace https://codereview.chromium.org/927363004/diff/100001/runtime/vm/allocation.cc File runtime/vm/allocation.cc (right): https://codereview.chromium.org/927363004/diff/100001/runtime/vm/allocation.cc#newcode41 runtime/vm/allocation.cc:41: ...
5 years, 10 months ago (2015-02-17 19:45:24 UTC) #5
koda
Addressed comments and also moved similar unwinding code from longjump.cc into StackResource, to collect all ...
5 years, 10 months ago (2015-02-17 20:01:15 UTC) #6
zra
lgtm
5 years, 10 months ago (2015-02-17 20:43:37 UTC) #7
koda
Ivan, PTAL https://codereview.chromium.org/927363004/diff/140001/runtime/vm/exceptions.cc File runtime/vm/exceptions.cc (right): https://codereview.chromium.org/927363004/diff/140001/runtime/vm/exceptions.cc#newcode287 runtime/vm/exceptions.cc:287: ASSERT(isolate->top_resource() != NULL); Added this ASSERT, which ...
5 years, 10 months ago (2015-02-17 21:45:51 UTC) #9
koda
5 years, 10 months ago (2015-02-18 23:21:42 UTC) #10
Message was sent while issue was closed.
Committed patchset #9 (id:160001) manually as r43858 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698