Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(4412)

Issue 13314047: Initial commit for i#95. Detach appears to work, but cleanup is still very broken. THis commit exis…

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 8 months ago by Peter Goodman
Modified:
10 years, 7 months ago
Reviewers:
zhaoqin, bruening
CC:
dynamorio-devs_googlegroups.com
Visibility:
Public.

Description

Reviewer: zhaoqin@google.com Initial commit for i#95. Detach appears to work, but cleanup is still very broken. THis commit exists to get reviews on the approach, coding style, missing things, potential bugs, etc. Detach appears to work, but cleanup remains in an inconsistent, broken state. Initial commit of i#95 for detaching. Working on getting the general structure of detaching right.

Patch Set 1 #

Total comments: 6

Patch Set 2 : Minor updates, haven't yet tested on Windows. #

Patch Set 3 : Minor update. #

Total comments: 49

Patch Set 4 : Fixes issue 95 for UNIX. Implemented attach/detach all. #

Total comments: 58
Unified diffs Side-by-side diffs Delta from patch set Stats (+555 lines, -94 lines) Patch
M core/config.c View 1 2 3 1 chunk +1 line, -0 lines 1 comment Download
M core/dispatch.c View 1 2 3 2 chunks +18 lines, -4 lines 1 comment Download
M core/dynamo.c View 1 2 3 5 chunks +54 lines, -12 lines 7 comments Download
M core/globals.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M core/heap.c View 1 2 3 2 chunks +4 lines, -1 line 1 comment Download
M core/lib/dr_app.h View 1 2 3 1 chunk +9 lines, -0 lines 1 comment Download
M core/moduledb.c View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M core/optionsx.h View 1 2 3 1 chunk +2 lines, -1 line 1 comment Download
M core/os_shared.h View 1 2 3 1 chunk +5 lines, -0 lines 1 comment Download
M core/rct.c View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M core/synch.c View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M core/unix/loader.c View 1 2 3 1 chunk +7 lines, -0 lines 1 comment Download
M core/unix/os.c View 1 2 3 6 chunks +231 lines, -18 lines 19 comments Download
M core/unix/os_exports.h View 1 2 3 1 chunk +3 lines, -0 lines 1 comment Download
M core/unix/os_private.h View 1 2 3 4 chunks +12 lines, -0 lines 4 comments Download
M core/unix/signal.c View 1 2 3 6 chunks +126 lines, -19 lines 10 comments Download
M core/utils.h View 1 2 3 1 chunk +3 lines, -2 lines 1 comment Download
M core/utils.c View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
M core/vmareas.c View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M core/win32/ntdll.c View 1 2 3 3 chunks +20 lines, -1 line 2 comments Download
M core/win32/os.c View 1 2 3 3 chunks +10 lines, -2 lines 2 comments Download
M core/win32/os_exports.h View 1 2 3 1 chunk +1 line, -0 lines 1 comment Download
M core/x86/arch.c View 1 2 3 1 chunk +11 lines, -0 lines 0 comments Download
M core/x86/interp.c View 1 2 3 2 chunks +3 lines, -1 line 1 comment Download
M suite/tests/CMakeLists.txt View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M suite/tests/api/startstop.c View 1 2 3 5 chunks +9 lines, -12 lines 0 comments Download
A + suite/tests/api/startstopall.c View 1 2 3 3 chunks +11 lines, -19 lines 3 comments Download
A + suite/tests/api/startstopall.expect View 1 2 3 0 chunks +-1 lines, --1 lines 0 comments Download

Messages

Total messages: 11
Peter Goodman
10 years, 8 months ago (2013-09-12 14:25:10 UTC) #1
Peter Goodman
https://codereview.appspot.com/13314047/diff/1/core/dispatch.c File core/dispatch.c (right): https://codereview.appspot.com/13314047/diff/1/core/dispatch.c#newcode562 core/dispatch.c:562: # ifdef DR_APP_EXPORTS Obviously I need to guard for ...
10 years, 8 months ago (2013-09-12 15:13:58 UTC) #2
Peter Goodman
Reviewer: zhaoqin@google.com Minor updates, haven't yet tested on Windows. Added some extra ifdefs, made it ...
10 years, 8 months ago (2013-09-12 16:11:28 UTC) #3
Peter Goodman
Reviewer: zhaoqin@google.com Minor update. Minor ifdef check. Added some extra ifdefs, made it so that ...
10 years, 8 months ago (2013-09-12 18:09:39 UTC) #4
bruening
https://codereview.appspot.com/13314047/diff/1/core/unix/signal.c File core/unix/signal.c (right): https://codereview.appspot.com/13314047/diff/1/core/unix/signal.c#newcode1091 core/unix/signal.c:1091: On 2013/09/12 15:13:58, Peter Goodman wrote: > TODO: Restore ...
10 years, 8 months ago (2013-09-13 05:18:44 UTC) #5
zhaoqin
some comment https://codereview.appspot.com/13314047/diff/11001/core/dispatch.c File core/dispatch.c (right): https://codereview.appspot.com/13314047/diff/11001/core/dispatch.c#newcode629 core/dispatch.c:629: } why not do the os_detach_all_threads in ...
10 years, 7 months ago (2013-09-18 21:12:46 UTC) #6
Peter Goodman
https://codereview.appspot.com/13314047/diff/11001/core/dispatch.c File core/dispatch.c (right): https://codereview.appspot.com/13314047/diff/11001/core/dispatch.c#newcode629 core/dispatch.c:629: } On 2013/09/18 21:12:46, zhaoqin wrote: > why not ...
10 years, 7 months ago (2013-09-19 16:27:19 UTC) #7
bruening
https://codereview.appspot.com/13314047/diff/11001/core/dispatch.c File core/dispatch.c (right): https://codereview.appspot.com/13314047/diff/11001/core/dispatch.c#newcode629 core/dispatch.c:629: } As synch_with_all_threads() says: * NOTE - Requires the ...
10 years, 7 months ago (2013-09-19 16:29:13 UTC) #8
Peter Goodman
Reviewer: bruening@google.com Fixes issue 95 for UNIX. Implemented attach/detach all. Implements dr_app_stop_all_and_detach (i#95) for UNIX, ...
10 years, 7 months ago (2013-09-30 20:18:43 UTC) #9
bruening
Main concern is the code duplication when it looks like it can be shared. Typo ...
10 years, 7 months ago (2013-10-08 18:03:53 UTC) #10
bruening
10 years, 7 months ago (2013-10-08 18:06:27 UTC) #11
On 2013/10/08 18:03:53, bruening wrote:
> It seems good to implement DETACH_BAD_STATE*, etc. for Linux as well as
Windows.

I meant this as "in the future"
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b