xwords/xwords4/android
Eric House cbb683fc74 fix env-mapping crash in jni due to race condition
As reported to google, dict iterator destruction was crashing due to a
race condition if it happened after a game using the same dict had been
closed since it needed a mapped env that the game closure would
remove. Fixed in two ways, one by adding the mapping prior to the code
that uses it (a common pattern: add happens many times, whenver it might
be needed, but remove only once), and second by passing env into the
code that was crashing.

The mapping stuff remains inherently racy and I'm not sure now how to
fix that. It depends on there being a place to unmap after which it's
guaranteed the mapped value won't be needed again. When two
objects (game and dict_iter in this case) map the same env/thread combo
there's a race.
2018-01-22 07:45:43 -08:00
..
app cleanup 2018-01-21 21:53:04 -08:00
gradle/wrapper move some gradle files 2017-01-18 06:33:00 -08:00
img_src tweak icons; make and add untrade 2017-12-30 15:07:11 -08:00
jni fix env-mapping crash in jni due to race condition 2018-01-22 07:45:43 -08:00
libs move java files and get them to compile 2017-01-18 08:27:48 -08:00
res_src Merge remote-tracking branch 'origin/android_translate' into android_translate 2018-01-08 22:20:10 +01:00
scripts remove empty strings (currently an error) 2017-12-17 11:17:23 -08:00
website tweak name and reflect new name on website 2012-08-30 19:21:05 -07:00
.gitignore ignore generated files 2017-08-22 07:52:15 -07:00
Application.mk initial checkin of jni source and build scripts for android port 2010-01-02 19:10:08 +00:00
build.gradle replace Crittercism with Crashlytics, suckily 2017-06-20 21:48:40 -07:00
gradle.properties move some gradle files 2017-01-18 06:33:00 -08:00
gradlew move some gradle files 2017-01-18 06:33:00 -08:00
gradlew.bat more cleanup. Get Crittercism stuff compiling. 2017-01-18 19:03:36 -08:00
id_rsa_uploader.enc try to fix travis: copy over .enc file 2017-09-11 06:47:59 -07:00
INSTALL.txt update build instruction 2017-12-29 17:56:50 -08:00
settings.gradle move some gradle files 2017-01-18 06:33:00 -08:00