diff options
author | Andreas Gampe <agampe@google.com> | 2015-02-23 08:12:24 -0800 |
---|---|---|
committer | Andreas Gampe <agampe@google.com> | 2015-02-23 10:23:06 -0800 |
commit | 794ad76e8d5b5b9132819d5b08a0570e27615644 (patch) | |
tree | 74b420e4337ecf9e5df689cc376fa965d765a908 /runtime/quick_exception_handler.h | |
parent | d98ff78976696fdde1e7868d4687719a0439544b (diff) | |
download | art-794ad76e8d5b5b9132819d5b08a0570e27615644.zip art-794ad76e8d5b5b9132819d5b08a0570e27615644.tar.gz art-794ad76e8d5b5b9132819d5b08a0570e27615644.tar.bz2 |
ART: Introduce NO_RETURN, Mark DoLongJump noreturn
Add NO_RETURN macro that adds C++11 noreturn attribute. Mark
DoLongJump methods as noreturn.
Change-Id: Ifde4318e370493237050d4c1349285a0382df23f
Diffstat (limited to 'runtime/quick_exception_handler.h')
-rw-r--r-- | runtime/quick_exception_handler.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/quick_exception_handler.h b/runtime/quick_exception_handler.h index 31622de..162b1dc 100644 --- a/runtime/quick_exception_handler.h +++ b/runtime/quick_exception_handler.h @@ -18,6 +18,7 @@ #define ART_RUNTIME_QUICK_EXCEPTION_HANDLER_H_ #include "base/logging.h" +#include "base/macros.h" #include "base/mutex.h" #include "stack.h" // StackReference @@ -48,7 +49,7 @@ class QuickExceptionHandler { SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); void DeoptimizeStack() SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); void UpdateInstrumentationStack() SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); - void DoLongJump() SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); + NO_RETURN void DoLongJump() SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); void SetHandlerQuickFrame(StackReference<mirror::ArtMethod>* handler_quick_frame) { handler_quick_frame_ = handler_quick_frame; |