commit | 22f454c7d349c439c774c5d79b32514b190fd531 | [log] [tgz] |
---|---|---|
author | Ian Rogers <irogers@google.com> | Sat Sep 08 11:06:29 2012 -0700 |
committer | Ian Rogers <irogers@google.com> | Sat Sep 08 16:44:23 2012 -0700 |
tree | b19271deb46c5313c72df18713d6b6be6798077b | |
parent | d83bc36185c8b2a763c79fa364b5387faa26c669 [diff] |
Remove a lock from ScopedThreadStateChange. Remove a lock used while inspecting the current thread state in ScopedThreadStateChange. It is safe to do so as the code just checks the state and the suspend count checks occur in the transition logic (with the appropriate locks held). Gives small but noticeable performance improvement to the JniField microbenchmark. Change-Id: Iadda8ae0b30355dc3d7e4daeed760c41b3fecfc2