xwords/xwords4
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
..
android fix env-mapping crash in jni due to race condition 2018-01-22 07:45:43 -08:00
common don't show current players tiles in list of remaining 2018-01-18 22:02:06 -08:00
dawg put back a couple of words -- not dirty! 2017-05-05 06:48:52 -07:00
debian ignore debian build files 2012-01-04 18:11:29 -08:00
linux don't show current players tiles in list of remaining 2018-01-18 22:02:06 -08:00
newrelay beginnings of new relay: shows persistence 2017-11-05 19:24:41 -08:00
relay comment out iface 2017-12-14 06:39:40 -08:00
scripts more work on script 2014-02-26 07:52:18 -08:00
tests allow to run multiple games at once 2005-09-14 05:12:07 +00:00
wince make trade and move confirm non-blocking 2017-02-17 08:58:20 -08:00
Makefile include all .xml and .java files, but only if they're not named in a .gitignore file in the same directory 2014-03-01 11:44:20 -08:00