OSDN Git Service

Handle nested signals
authorDave Allison <dallison@google.com>
Tue, 26 Aug 2014 18:07:58 +0000 (11:07 -0700)
committerDave Allison <dallison@google.com>
Wed, 27 Aug 2014 17:08:22 +0000 (10:08 -0700)
commitfabe91e0d558936ac26b98d2b4ee1af08f58831d
tree371d6e095d8ecd5664ac9032b10476e38ecbb397
parentf59b605f82c0e2b7bfc6019ee7bd650628f50d3a
Handle nested signals

This allows for signals to be raised inside the ART signal handler.
This can occur when the JavaStackTraceHandler attempts to generate
a stack trace and something goes wrong.

It also fixes an issue where the fault manager was not being
correctly shut down inside the signal chaining code.  In this
case the signal handler was not restored to the original.

Bug: 17006816
Bug: 17133266
Change-Id: I9c25bf4f6921e6a107aefbdf47d2c0db9f41508f
runtime/arch/arm/fault_handler_arm.cc
runtime/arch/arm64/fault_handler_arm64.cc
runtime/arch/x86/fault_handler_x86.cc
runtime/arch/x86/quick_entrypoints_x86.S
runtime/arch/x86_64/quick_entrypoints_x86_64.S
runtime/entrypoints_order_test.cc
runtime/fault_handler.cc
runtime/fault_handler.h
runtime/thread.cc
runtime/thread.h
sigchainlib/sigchain.cc