Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!dp8g2000vbb.googlegroups.com!not-for-mail From: "raphfrk@gmail.com" Newsgroups: comp.lang.java.programmer Subject: Re: Volatile happens before question Date: Tue, 17 Jan 2012 12:38:06 -0800 (PST) Organization: http://groups.google.com Lines: 2 Message-ID: <263caac2-6fba-46e2-a19e-9d414e08efe2@dp8g2000vbb.googlegroups.com> References: <09848313-2372-4c23-8f52-fa84c612c100@u32g2000yqe.googlegroups.com> <15jRq.2104$d%2.1226@newsfe07.iad> NNTP-Posting-Host: 46.7.14.168 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1326832795 1219 127.0.0.1 (17 Jan 2012 20:39:55 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 17 Jan 2012 20:39:55 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: dp8g2000vbb.googlegroups.com; posting-host=46.7.14.168; posting-account=iOAcbgoAAADC8J1iW-JMMSO74f5TboSg User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: HUALESNKRC X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0.1) Gecko/20100101 Firefox/9.0.1,gzip(gfe) Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:11426 Thanks for the info. I think the conclusion is that it would be unsafe? I will just use synchronized to ensure safety.