Function lookup is not thread safe ---------------------------------- Key: GEOT-3481 URL: http://jira.codehaus.org/browse/GEOT-3481 Project: GeoTools Issue Type: Bug Components: core main Affects Versions: 2.7-RC2 Reporter: Andrea Aime Assignee: Andrea Aime Fix For: 2.7.0
There are two errors in the current synchronization code: - the class field is set to an empty collection before the collection could be filled (large error, other threads will think the field is initialized, fix, assign to the field only when the collection has been filled) - it uses "double checked locking" which is known to have concurrency issues (fix, use volatile, see http://www.cs.umd.edu/~pugh/java/memoryModel/DoubleCheckedLocking.html) -- 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 ------------------------------------------------------------------------------ Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar _______________________________________________ Geotools-devel mailing list Geotools-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel