summaryrefslogtreecommitdiff
path: root/test/ProfileTestMultiDex
diff options
context:
space:
mode:
authorJosh Gao <jmgao@google.com>2017-04-26 19:09:47 -0700
committerJosh Gao <jmgao@google.com>2017-05-16 16:28:50 -0700
commitdafb6c2f9e8b9173ada6b8311bd88a0ed24c5bd5 (patch)
treecf5fb691ef15b37062f1ed9f5d0c1cebf2cc1f18 /test/ProfileTestMultiDex
parenta402fbc2962e8cda1111449a47c26de69b33d669 (diff)
sigchain: always call InitializeSignalChain on startup.
Processes that link against libsigchain because they might want to dynamically load libart.so (e.g. surfaceflinger) might never explicitly call InitializeSignalChain. In this scenario, the lazy initialization that occurs when sigprocmask is called can happen at unexpected times, such as from pthread_exit, leading to deadlocks or crashes. Add __attribute__((constructor)) to InitializeSignalChain to have it be automatically called upon process start. Keep the existing calls to it in the wrapper functions in order to sidestep problems around static initialization order. Bug: https://issuetracker.google.com/37119593 Test: run-test 004-SignalTest Test: m test-art-host Test: m test-art-target Change-Id: I7906c1f625ccca0350ea9310140a3f43a657be4c (cherry picked from commit fd4d0d3eb9b5c7fe2fa1df97d9c0763900b2be52)
Diffstat (limited to 'test/ProfileTestMultiDex')
0 files changed, 0 insertions, 0 deletions