diff options
author | 2017-03-08 13:11:50 +0000 | |
---|---|---|
committer | 2017-05-16 01:58:03 +0100 | |
commit | 365719c23d809e595cf320bfba40e76bb4e87940 (patch) | |
tree | 0939f0d8dc47723978a665fa11dd637f6976d521 /runtime/interpreter/interpreter_intrinsics.cc | |
parent | d6705a0586377f1b0d7d14d3abe2b270bb0adb18 (diff) |
No need to lock when calling Thread.interrupted.
Also intrinsify the Thread.interrupted call.
The rationale behind this optimization is that the flag can only
have two values, and only self can set it to false.
Test: libcore, jdwp, run-tests, 050-sync-test
Change-Id: I5c2b43bf872ba0bfafcb54b2cfcd19181864bc4c
Diffstat (limited to 'runtime/interpreter/interpreter_intrinsics.cc')
-rw-r--r-- | runtime/interpreter/interpreter_intrinsics.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/interpreter/interpreter_intrinsics.cc b/runtime/interpreter/interpreter_intrinsics.cc index 869d43061b..74e6cd297d 100644 --- a/runtime/interpreter/interpreter_intrinsics.cc +++ b/runtime/interpreter/interpreter_intrinsics.cc @@ -469,6 +469,7 @@ bool MterpHandleIntrinsic(ShadowFrame* shadow_frame, UNIMPLEMENTED_CASE(UnsafeFullFence /* ()V */) UNIMPLEMENTED_CASE(ReferenceGetReferent /* ()Ljava/lang/Object; */) UNIMPLEMENTED_CASE(IntegerValueOf /* (I)Ljava/lang/Integer; */) + UNIMPLEMENTED_CASE(ThreadInterrupted /* ()Z */) case Intrinsics::kNone: res = false; break; |