platform_system_core/libmemunreachable/tests
Josh Gao 69d2f98197 adb: fix fd double close, Subprocess lifetime issue.
This commit fixes two somewhat related issues in shell_service.

  - The fd returned by StartSubprocess is owned by a unique_fd
    contained in the Subprocess object, but also gets closed by the
    caller. Resolve this by duping the returned file descriptor.

  - A Subprocess object can be destroyed immediately after its initial
    construction in StartSubprocess if we're sufficiently unlucky.
    Split up the fork/exec and "start management thread" steps, so that
    we can safely do everything we need to do on the Subprocess before
    handing it over to the thread that'll eventually destroy it.

Also includes squashed patches from AOSP master that allow for use of
unique_fd inside adb.

Bug: http://b/29254462
Change-Id: Id9cf0b7e7a7293bee7176919edc758597691c636
(cherry picked from commit c0e6e40cc9)
(cherry picked from commit 54c72aaccc)
(cherry picked from commit 2c5d1d7cd9)
(cherry picked from commit 2a7b86337f)
(cherry picked from commit 13ea01db45)
(cherry picked from commit 344778da41)
2016-06-20 14:51:05 -07:00
..
Allocator_test.cpp Compile some tests for the host 2016-03-04 16:39:51 -08:00
DisableMalloc_test.cpp Compile some tests for the host 2016-03-04 16:39:51 -08:00
HeapWalker_test.cpp Handle segfaults while walking native heap 2016-04-28 16:20:40 -07:00
HostMallocStub.cpp Compile some tests for the host 2016-03-04 16:39:51 -08:00
LeakFolding_test.cpp Combine leaks with same stacktrace 2016-03-04 22:40:34 -08:00
MemUnreachable_test.cpp imprecise mark and sweep native memory leak detector 2016-02-19 00:49:36 -08:00
ThreadCapture_test.cpp adb: fix fd double close, Subprocess lifetime issue. 2016-06-20 14:51:05 -07:00