The 'singleton' library may have race conditions on init
--------------------------------------------------------
Key: JRUBY-5268
URL: http://jira.codehaus.org/browse/JRUBY-5268
Project: JRuby
Issue Type: Bug
Components: Standard Library
Affects Versions: JRuby 1.5.6
Reporter: Charles Oliver Nutter
Assignee: Thomas E Enebo
Fix For: JRuby 1.6
The 'singleton' library lazily initializes a single object instance once
included into a given class. However, it's possible this initialization is not
thread-safe, subject to various races. One such issue prompted Nokogiri folks
to stop using singleton under JRuby:
https://github.com/tenderlove/nokogiri/commit/5eb036e39ea85a8e12eebee11bc5086b0e4ce6e3
My best guess at a glance is that the complexity of lazily initializing a
singletonized class or the singleton instance of that class is too complicated
and does not consider truly concurrent execution sufficiently well.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email