commit | 194acf2849216076f6f6277c39e980622267e2ae | [log] [tgz] |
---|---|---|
author | Yifan Hong <elsk@google.com> | Tue Jun 29 18:44:56 2021 -0700 |
committer | Yifan Hong <elsk@google.com> | Thu Jul 15 12:51:46 2021 -0700 |
tree | d52902705940af3e5f8a7d04cb82c1f6b48da5c5 | |
parent | f94b148bbd15df6a74679f578527f4a404e973a1 [diff] |
RpcSession attaches/detaches thread on JVM (second attempt) If AndroidRuntimeGetJavaVM exists, attach current thread before the while loop in join, and detach after the while loop. This ensures the Java thread is attached / detached appropriately for binder threads that handles RPC calls. Test: run aservice on Java services Bug: 190450693 Change-Id: Ie37aea20047294d4c24c79aa95965d6dde5965b3