Sung-wook / jav8

Automatically exported from code.google.com/p/jav8
0 stars 0 forks source link

__thread is not supported by Android #4

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
TLS is not supported by NDK. The following code in Utils.h freezes application:
static __thread caches_t *s_caches;

I removed __thread and it started working, but I can not assess the impact of 
this hack.

Original issue reported on code.google.com by novikov on 20 Mar 2012 at 3:10

GoogleCodeExporter commented 8 years ago
I tried to come up with a fix for this. I replaced __thread with an internal 
implementation of TLS from v8.

https://github.com/pix/jav8/commit/d5c36c6105d3c74272ec9a998db8deb7904f3b7e.patc
h

https://github.com/pix/jav8

Original comment by cami...@moncelier.fr on 21 Aug 2013 at 3:32

Attachments: