tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 49972] Double-check idiom. Possible data-race.
Date Thu, 23 Sep 2010 08:03:41 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=49972

--- Comment #8 from Kostya Serebryany <konstantin.s.serebryany@gmail.com> 2010-09-23
04:03:35 EDT ---
>> If there were no possibility of an exception, your statement would be true.
I am not sure about this particular case, but in general a compiler (JIT) may
statically figure out that an exception will never be thrown and eliminate the
exception handling code completely -- and then shuffle the code in arbitrary
way. 
I don't think that 'this code may throw exception' may be used as
synchronization.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message