harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pavel Afremov (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-5135) DRL VM hangs during stress.Mix running on x86-64
Date Fri, 16 Nov 2007 15:23:43 GMT

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

Pavel Afremov commented on HARMONY-5135:

To fix this dead lock analog of hycond_wait should be developed, which doesn't contain safe_point
call,  and this analog should be used in locktable_reader_enter and locktable_writer_enter.

> DRL VM hangs during stress.Mix running on x86-64
> ------------------------------------------------
>                 Key: HARMONY-5135
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5135
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Linux x86-64
>            Reporter: Pavel Afremov
> The safe_point called from hycond_wait, which called from many places include locktable_reader_enter
and locktable_writer_enter.
> From other side access to locatable there is in function hythread_reclaim_recources,
which works during stop the world. 
> It leads to dead lock, when first thread, which catch locktable monitor goes into safe
poin and GC starts. In this case GC can't complete work, because one or several threads waiting
on following stack, when first thread free locktable monitor:
> 	#1 <pthread_mutex_lock>
> 	#2 <hymutex_lock>
> #3<hythread_reclaim_resources>
> #4 <vm_reclaim_native_objs>
> #5 <gc_reclaim_heap>
> #6 <fspace_alloc>
> #7 ....
> So it's a deadlock when firs thread waits when second thread free monitor, and send thread
waits when first thread free the other monitor.

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

View raw message