discomarathon / google-gson

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

Gson is not threadsafe #63

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Gson throws ConcurrentModificationException when used concurrently. 
See the discussion in http://groups.google.com/group/google-
gson/browse_thread/thread/563bb51ee2495081

Original issue reported on code.google.com by inder123 on 20 Oct 2008 at 6:28

GoogleCodeExporter commented 9 years ago
I add a test for this in r274

Original comment by inder123 on 20 Oct 2008 at 7:49

GoogleCodeExporter commented 9 years ago
The culprit is ObjectNavigatorFactory which holds the memory stack reference. 
This 
stack must be held per call, not throughout the lifetime of Gson.

Original comment by inder123 on 20 Oct 2008 at 7:49

GoogleCodeExporter commented 9 years ago
Fixed in r276

Original comment by inder123 on 20 Oct 2008 at 8:11