xwords/xwords4/android/jni
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
..
.gitignore forgot a file 2017-01-18 07:28:19 -08:00
anddict.c more script fixes; move jni code 2017-01-18 07:27:23 -08:00
anddict.h more script fixes; move jni code 2017-01-18 07:27:23 -08:00
andglobals.h more script fixes; move jni code 2017-01-18 07:27:23 -08:00
Android.mk finish: using java's base64 en/decoder from java 2017-07-13 07:40:28 -07:00
andutils.c create new fdroid variant 2017-11-27 20:40:06 -08:00
andutils.h fix makeIntArray to work for non-32-bit array sources 2017-03-13 19:32:20 -07:00
drawwrapper.c fix makeIntArray to work for non-32-bit array sources 2017-03-13 19:32:20 -07:00
drawwrapper.h more script fixes; move jni code 2017-01-18 07:27:23 -08:00
jniutlswrapper.c fix env-mapping crash in jni due to race condition 2018-01-22 07:45:43 -08:00
jniutlswrapper.h fix env-mapping crash in jni due to race condition 2018-01-22 07:45:43 -08:00
LocalizedStrIncludes.h more script fixes; move jni code 2017-01-18 07:27:23 -08:00
paths.h more script fixes; move jni code 2017-01-18 07:27:23 -08:00
utils.c more script fixes; move jni code 2017-01-18 07:27:23 -08:00
utilwrapper.c add timestamp to chat messages, db and display 2017-06-10 11:36:45 -07:00
utilwrapper.h more script fixes; move jni code 2017-01-18 07:27:23 -08:00
xportwrapper.c remove relayStatus() from jni 2017-12-27 14:42:15 -08:00
xportwrapper.h more script fixes; move jni code 2017-01-18 07:27:23 -08:00
xptypes.h more script fixes; move jni code 2017-01-18 07:27:23 -08:00
xwjni.c fix env-mapping crash in jni due to race condition 2018-01-22 07:45:43 -08:00