You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Alexey Varlamov (JIRA)" <ji...@apache.org> on 2006/12/15 11:20:20 UTC

[jira] Created: (HARMONY-2736) [drlvm][kernel] j.l.ClassLoader.definePackage() is not thread-safe

[drlvm][kernel] j.l.ClassLoader.definePackage() is not thread-safe
------------------------------------------------------------------

                 Key: HARMONY-2736
                 URL: http://issues.apache.org/jira/browse/HARMONY-2736
             Project: Harmony
          Issue Type: Bug
          Components: DRLVM
            Reporter: Alexey Varlamov
            Priority: Minor


There is possible data race in java.lang.ClassLoader.definePackage(): it performs check and then updates internal collections in non-atomical way, so API contract can be violated in multi-thread environment, concurrent call may result in non-unique instance returned.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Assigned: (HARMONY-2736) [drlvm][kernel] j.l.ClassLoader.definePackage() is not thread-safe

Posted by "Alexey Varlamov (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-2736?page=all ]

Alexey Varlamov reassigned HARMONY-2736:
----------------------------------------

    Assignee: Alexey Varlamov

> [drlvm][kernel] j.l.ClassLoader.definePackage() is not thread-safe
> ------------------------------------------------------------------
>
>                 Key: HARMONY-2736
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2736
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Alexey Varlamov
>         Assigned To: Alexey Varlamov
>            Priority: Minor
>
> There is possible data race in java.lang.ClassLoader.definePackage(): it performs check and then updates internal collections in non-atomical way, so API contract can be violated in multi-thread environment, concurrent call may result in non-unique instance returned.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (HARMONY-2736) [drlvm][kernel] j.l.ClassLoader.definePackage() is not thread-safe

Posted by "Alexey Varlamov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-2736?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Varlamov closed HARMONY-2736.
------------------------------------

    Resolution: Fixed

Fixed at r501401

> [drlvm][kernel] j.l.ClassLoader.definePackage() is not thread-safe
> ------------------------------------------------------------------
>
>                 Key: HARMONY-2736
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2736
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Alexey Varlamov
>         Assigned To: Alexey Varlamov
>            Priority: Minor
>
> There is possible data race in java.lang.ClassLoader.definePackage(): it performs check and then updates internal collections in non-atomical way, so API contract can be violated in multi-thread environment, concurrent call may result in non-unique instance returned.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.