https://issues.apache.org/bugzilla/show_bug.cgi?id=47851

           Summary: thread-safety issues in the TC native Java code
           Product: Tomcat Native
           Version: unspecified
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Library
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: s...@apache.org


[This is from branches/1.1x]

There are some thread-safety issues in the TC native Java code, for example:

public class Address {

    static public String APR_ANYADDR = "0.0.0.0";

The above String is presumably intended to be a constant, immutable field, but
is not marked final.

jni.Library._instance is used as a cache, but access is not synch. and the
field is not volatile.

The Library class has lots of public static fields which are not final, e.g.

jni.Library.APR_IS_DEV_VERSION
jni.Library.APR_HAVE_IPV6

-- 
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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to