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 49985] Lazy initialization without any synchronization - data race in AstInteger, AstFloatingPoint, AstString
Date Fri, 01 Oct 2010 12:07:23 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=49985

--- Comment #4 from Sergey Vorobyev <sergeyvorobyev@google.com> 2010-10-01 08:07:19
EDT ---
(In reply to comment #3)
> AIUI making "number" volatile would prevent the re-ordering that can result in
> the object reference being set up before construction is complete. Yes?

Yes, the reason is object reference being set up before construction is
complete. One of possible solutions is making "number" volatile.

-- 
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