goverdata / usemon

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

thread safety #26

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. code inspection

What is the expected output? What do you see instead?
Major concurrency issues in your code. Sure you use synchronized and all
that but there´s a variety of visibility issues and suspected multithreaded
access to a HashMap?... (Usage class). 

What version of the product are you using? On what operating system?
latest

Please provide any additional information below.

Original issue reported on code.google.com by shautv...@gmail.com on 17 Nov 2008 at 9:04

GoogleCodeExporter commented 8 years ago
ok i see the Usage is stored in a threadlocal, so my wrong. 
visibility remains. One thread might never see changes in an object made by 
another. 
But for now your code isn´t hampered by this, because there´s strong cache 
coherence
see
http://pveentjer.wordpress.com/2008/05/17/jmm-thank-god-or-the-devil-for-strong-
cache-coherence/

Original comment by shautv...@gmail.com on 17 Nov 2008 at 9:57