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

Issue 143263012: Ensure the debugger keeps a reference to code objects (Closed)

Created:
6 years, 11 months ago by hausner
Modified:
6 years, 11 months ago
Reviewers:
zra
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Ensure the debugger keeps a reference to code objects Keep the code object in a breakpoint object rather than the function object. This ensures that the GC can’t collect the code object while there are breakpoints for the function. R=zra@google.com Committed: https://code.google.com/p/dart/source/detail?r=32006

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -31 lines) Patch
M runtime/vm/debugger.h View 1 2 3 chunks +5 lines, -4 lines 0 comments Download
M runtime/vm/debugger.cc View 1 2 9 chunks +29 lines, -12 lines 0 comments Download
M runtime/vm/debugger_arm.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M runtime/vm/debugger_ia32.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M runtime/vm/debugger_mips.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M runtime/vm/debugger_x64.cc View 1 chunk +1 line, -2 lines 0 comments Download
M runtime/vm/object.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M runtime/vm/object.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M runtime/vm/raw_object.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
hausner
Additional question: would it make sense to add a function that checks whether there are ...
6 years, 11 months ago (2014-01-24 22:28:25 UTC) #1
zra
lgtm with small comment. If there's already a reference to the code object cached in ...
6 years, 11 months ago (2014-01-24 23:04:13 UTC) #2
hausner
Added Code::HasBreakpoint() and addressed comment. https://codereview.chromium.org/143263012/diff/1/runtime/vm/debugger.cc File runtime/vm/debugger.cc (right): https://codereview.chromium.org/143263012/diff/1/runtime/vm/debugger.cc#newcode972 runtime/vm/debugger.cc:972: Code& code = Code::Handle(target_function.unoptimized_code()); ...
6 years, 11 months ago (2014-01-24 23:54:30 UTC) #3
hausner
6 years, 11 months ago (2014-01-24 23:55:17 UTC) #4
Message was sent while issue was closed.
Committed patchset #3 manually as r32006 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698