harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pavel Pervov (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-4958) [drlvm][thread] Terminated threads leak thread handles on windows
Date Fri, 23 Nov 2007 06:45:43 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-4958?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12544931
] 

Pavel Pervov commented on HARMONY-4958:
---------------------------------------

MSDN explicitly states in CreateThread article:
-------------------------------------
"The thread object remains in the system until the thread has terminated and all handles to
it have been closed through a call to CloseHandle."
-------------------------------------
Although this knowledge is absolutely logical, it was new at least for me.

> [drlvm][thread] Terminated threads leak thread handles on windows
> -----------------------------------------------------------------
>
>                 Key: HARMONY-4958
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4958
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Windows x86 Revision: 582798
>            Reporter: Andrey Yakushev
>            Assignee: Gregory Shimansky
>         Attachments: exclude_AddRmPropertiesHooksTest.patch
>
>
> api.kernel.hooks.AddRmPropertiesHooksTest fails periodically after 10-20 minutes running
with different meggages like:
> OK
> OK
> OK
> Uncaught exception in main:
> java.lang.OutOfMemoryError: Failed to create new thread
>         at java.lang.Thread.start(Thread.java:757)
>         at org.apache.harmony.test.java.lang.OutOfMemoryError: Failed to create new thread
>         at java.lang.Thread.start(Thread.java:757)
>         at org.apache.harmony.test.
> I noted that DRLVM process increases handle usage (near +1000 in a second) until all
are exhausted. Memory is also leaked.

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


Mime
View raw message