OSDN Git Service

Fix binder force gc will block binder thread
authorHiroshi Yamauchi <yamauchi@google.com>
Tue, 5 May 2015 19:15:26 +0000 (12:15 -0700)
committerHiroshi Yamauchi <yamauchi@google.com>
Tue, 5 May 2015 19:15:26 +0000 (12:15 -0700)
commitdfefe2d0434c4f688aa8779f6d7019640499daf9
tree18999b3516cd37e573dc247faa3cfe6725b85e67
parent574f53793d6441ebf55ca8811588ad37d9451a9a
Fix binder force gc will block binder thread

Symptom: Force gc caused activity launch time took longer
Root Cause: Runtime.getRuntime().gc will block binder thread
Solution: Use VMRuntime.requestConcurrentGC() will not block binder
thread

(cherry pick commit d916c233f0ed615667c1c2338c779e819098d135)

Bug: 20554807
Change-Id: Ia9fecea51d2b0a6635e037b5f2bfcb8eb87f4103
core/java/com/android/internal/os/BinderInternal.java