harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pavel Rebriy (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-5136) [drlvm] DRL VM hangs during stress.Mix running.
Date Tue, 20 Nov 2007 15:55:43 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-5136?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Pavel Rebriy updated HARMONY-5136:
----------------------------------

    Attachment: shutdown.patch

The patch to fix the problem.
During shutdown VM holds the java.lang.ThreadGroup.lock before canceling demon threads.

> [drlvm] DRL VM hangs during stress.Mix running.
> -----------------------------------------------
>
>                 Key: HARMONY-5136
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5136
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Pavel Afremov
>         Attachments: shutdown.patch
>
>
> DRL VM hangs during stress.Mix running.
> Main threads waits on the monitor enter on the following stack:
> <pthread_mutex_lock>
> <hymutex_lock>
> <hythread_monitor_enter>
> <hythread_thin_monitor_enter>
> <Jthread_monitor_enter>
> <?? JAVA CODE ??>
> <JIT_execute_method_default>
> <DrlEMImpl::execute_method>
> <ExecuteMethod>
> <vm_execute_java_method_array>
> <run_java_detach>
> <jthread_detach>
> <vm_destroy>
> <DestroyJavaVM>
> Thread which caught monitor is dead.
> In this case it looks like that one thread complete  its work and running in java method
group.remove under synchronization.
> At this moment thread was stopped via safe_point. Monitor was not free in this case.
Than the other thread, which is main, tries to detach him self and blocs on the locked monitor,
which was caught by first thread, which is dead at this moment.

-- 
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