OSDN Git Service

Improve the thread flip.
authorHiroshi Yamauchi <yamauchi@google.com>
Tue, 2 Aug 2016 23:03:06 +0000 (16:03 -0700)
committerHiroshi Yamauchi <yamauchi@google.com>
Thu, 18 Aug 2016 03:24:46 +0000 (20:24 -0700)
commite61e6fdd404b8f04bd33fc3ea49e38e92e31ad69
treea7d97c2a67dc1f8337f002a6748f50c9d32e303e
parentd16ae7fe70d74091778e5952b7920df14866287f
Improve the thread flip.

- In addition to the threads that are suspended in FullSuspendCheck(),
  prioritize the resume of threads that are blocking for the thread
  flip at the JNI critical section entry and threads are about to
  transition to runnable (eg. blocking at the SOA entry from JNI).
- Shorten the length of the thread flip critical
  section (ThreadFlipBegin/End).
- Add some systrace scopes.

Bug: 29517059
Bug: 12687968
Test: test-art-host, Ritz EAAC, N9 libartd boot.
Change-Id: Idecec9936ae432c23d5f83321ba13339852018df
runtime/gc/collector/concurrent_copying.cc
runtime/gc/heap.cc
runtime/thread-inl.h
runtime/thread.cc
runtime/thread.h
runtime/thread_list.cc