From 365719c23d809e595cf320bfba40e76bb4e87940 Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Wed, 8 Mar 2017 13:11:50 +0000 Subject: 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 --- compiler/optimizing/intrinsics_mips.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'compiler/optimizing/intrinsics_mips.cc') diff --git a/compiler/optimizing/intrinsics_mips.cc b/compiler/optimizing/intrinsics_mips.cc index abf5b122c8..3077e98511 100644 --- a/compiler/optimizing/intrinsics_mips.cc +++ b/compiler/optimizing/intrinsics_mips.cc @@ -3248,6 +3248,8 @@ UNIMPLEMENTED_INTRINSIC(MIPS, UnsafeGetAndSetInt) UNIMPLEMENTED_INTRINSIC(MIPS, UnsafeGetAndSetLong) UNIMPLEMENTED_INTRINSIC(MIPS, UnsafeGetAndSetObject) +UNIMPLEMENTED_INTRINSIC(MIPS, ThreadInterrupted) + UNREACHABLE_INTRINSICS(MIPS) #undef __ -- cgit v1.2.3-59-g8ed1b