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

Issue 56102: Change handling of debugger unloading (Closed)

Created:
11 years, 8 months ago by Søren Thygesen Gjesse
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Change handling of debugger unloading. Add a semaphore for accessing debugger varaibles which can be changed from a different thread. This is mainly the debug message handler which can be set to NULL to disconnect the debugger. Control the unloading of the debugger from the V8 thread. Before the debugger unload was called from the thread setting the debug message handler to NULL. This was not safe as this involves calling into V8. This change handles the unloading of the debugger either when entering a debugger event and the debugger was disconnected while the debugger was not active or when leaving the debugger and the debugger was disconnected while the debugger was active. Add a flag to avoid unloading the debugger if debugger code is used by the application for other purposes than debugging. Added tests for clearing the debug message handler. Committed: http://code.google.com/p/v8/source/detail?r=1648

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 4

Patch Set 3 : '' #

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+157 lines, -45 lines) Patch
M src/debug.h View 1 2 5 chunks +26 lines, -8 lines 0 comments Download
M src/debug.cc View 8 chunks +48 lines, -21 lines 0 comments Download
M test/cctest/test-debug.cc View 1 2 3 5 chunks +83 lines, -16 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Søren Thygesen Gjesse
11 years, 8 months ago (2009-03-31 10:17:15 UTC) #1
Mads Ager (chromium)
LGTM http://codereview.chromium.org/56102/diff/6/1006 File src/debug.h (right): http://codereview.chromium.org/56102/diff/6/1006#newcode508 Line 508: // No debugger currently active unload the ...
11 years, 8 months ago (2009-03-31 11:08:06 UTC) #2
Søren Thygesen Gjesse
11 years, 8 months ago (2009-03-31 11:17:06 UTC) #3
http://codereview.chromium.org/56102/diff/6/1006
File src/debug.h (right):

http://codereview.chromium.org/56102/diff/6/1006#newcode508
Line 508: // No debugger currently active unload the debugger if possible.
On 2009/03/31 11:08:06, Mads Ager wrote:
> Hard to read.  How about:
> 
> Unload the debugger if possible. Only called when no debugger is currently
> active.

Done.

http://codereview.chromium.org/56102/diff/6/1005
File test/cctest/test-debug.cc (right):

http://codereview.chromium.org/56102/diff/6/1005#newcode3774
Line 3774: // Debugger message handler which counts then number of times it is
called.
On 2009/03/31 11:08:06, Mads Ager wrote:
> then -> the

Done.

Powered by Google App Engine
This is Rietveld 408576698