EXPERIMENTAL_AUTO_CPP_THREAD_ATTACH uses a thread_local object's destructor to detach a thread from the JVM
on exit - if it was previously attached due to a call across the JNI boudary.
The hooks to run a thread_local object's destructor have compatibility problems on some implementations
of Android L's libc, in call to cxa_thread_atexit_impl.
Add new define EXPERIMENTAL_AUTO_CPP_THREAD_ATTACH_NO_THREAD_LOCAL that does the same thing, but using
pthread_create_key/pthread_setspecific. This has no dependency on cxa_thread_atexit_impl
EXPERIMENTAL_AUTO_CPP_THREAD_ATTACH uses a thread_local object's destructor to detach a thread from the JVM on exit - if it was previously attached due to a call across the JNI boudary.
The hooks to run a thread_local object's destructor have compatibility problems on some implementations of Android L's libc, in call to
cxa_thread_atexit_impl
.Add new define EXPERIMENTAL_AUTO_CPP_THREAD_ATTACH_NO_THREAD_LOCAL that does the same thing, but using pthread_create_key/pthread_setspecific. This has no dependency on
cxa_thread_atexit_impl