You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "weldon washburn (JIRA)" <ji...@apache.org> on 2007/10/09 06:45:50 UTC

[jira] Created: (HARMONY-4908) A prototype of a candidate synch algorithm for suspending a thread at a GC safepoint

A prototype of a candidate synch algorithm for suspending a thread at a GC safepoint
------------------------------------------------------------------------------------

                 Key: HARMONY-4908
                 URL: https://issues.apache.org/jira/browse/HARMONY-4908
             Project: Harmony
          Issue Type: Sub-task
            Reporter: weldon washburn




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


[jira] Updated: (HARMONY-4908) [drlvm][thread] A prototype of a candidate synch algorithm for suspending a thread at a GC safepoint

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

Gregory Shimansky updated HARMONY-4908:
---------------------------------------

    Summary: [drlvm][thread] A prototype of a candidate synch algorithm for suspending a thread at a GC safepoint  (was: A prototype of a candidate synch algorithm for suspending a thread at a GC safepoint)

> [drlvm][thread] A prototype of a candidate synch algorithm for suspending a thread at a GC safepoint
> ----------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-4908
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4908
>             Project: Harmony
>          Issue Type: Sub-task
>            Reporter: weldon washburn
>            Assignee: weldon washburn
>         Attachments: sp_hythread_suspend_other.c, StateTrans.java, sync_prototype.c, sync_prototype.diff
>
>


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


[jira] Updated: (HARMONY-4908) A prototype of a candidate synch algorithm for suspending a thread at a GC safepoint

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

weldon washburn updated HARMONY-4908:
-------------------------------------

    Attachment: sync_prototype.diff

> A prototype of a candidate synch algorithm for suspending a thread at a GC safepoint
> ------------------------------------------------------------------------------------
>
>                 Key: HARMONY-4908
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4908
>             Project: Harmony
>          Issue Type: Sub-task
>            Reporter: weldon washburn
>            Assignee: weldon washburn
>         Attachments: StateTrans.java, sync_prototype.c, sync_prototype.diff
>
>


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


[jira] Commented: (HARMONY-4908) [drlvm][thread] A prototype of a candidate synch algorithm for suspending a thread at a GC safepoint

Posted by "Pavel Rebriy (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-4908?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12559537#action_12559537 ] 

Pavel Rebriy commented on HARMONY-4908:
---------------------------------------

The described algorithm is implemented in HARMONY-4937. This issue could be closed.


> [drlvm][thread] A prototype of a candidate synch algorithm for suspending a thread at a GC safepoint
> ----------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-4908
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4908
>             Project: Harmony
>          Issue Type: Sub-task
>          Components: DRLVM
>            Reporter: weldon washburn
>            Assignee: weldon washburn
>         Attachments: sp_hythread_suspend_other.c, StateTrans.java, sync_prototype.c, sync_prototype.diff
>
>


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


[jira] Updated: (HARMONY-4908) A prototype of a candidate synch algorithm for suspending a thread at a GC safepoint

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

weldon washburn updated HARMONY-4908:
-------------------------------------

    Attachment: sync_prototype.c

> A prototype of a candidate synch algorithm for suspending a thread at a GC safepoint
> ------------------------------------------------------------------------------------
>
>                 Key: HARMONY-4908
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4908
>             Project: Harmony
>          Issue Type: Sub-task
>            Reporter: weldon washburn
>            Assignee: weldon washburn
>         Attachments: StateTrans.java, sync_prototype.c
>
>


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


[jira] Updated: (HARMONY-4908) A prototype of a candidate synch algorithm for suspending a thread at a GC safepoint

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

weldon washburn updated HARMONY-4908:
-------------------------------------

    Attachment: StateTrans.java

> A prototype of a candidate synch algorithm for suspending a thread at a GC safepoint
> ------------------------------------------------------------------------------------
>
>                 Key: HARMONY-4908
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4908
>             Project: Harmony
>          Issue Type: Sub-task
>            Reporter: weldon washburn
>            Assignee: weldon washburn
>         Attachments: StateTrans.java, sync_prototype.c
>
>


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


[jira] Commented: (HARMONY-4908) A prototype of a candidate synch algorithm for suspending a thread at a GC safepoint

Posted by "weldon washburn (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-4908?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12533277 ] 

weldon washburn commented on HARMONY-4908:
------------------------------------------

The (very rough) sync protocol kernel is contained in the three files StateTrans.java, synch_prototype.c and synch_prototype.diff.

StateTrans.java
This file contains a simple Java app that starts java threads which call Thread.sleep() with unique timeout values.  These unique values are intended to trigger specific behaviors inside sync_prototype.c.  The reason for spinning up Java threads from a Java app is so that the sync kernel can work with fully initialized java threads.

sync_prototype.c
This is a stand alone file that should be put in the working_vm/vm/thread/src directory.  The code in this file will be called by a special hack to thread_java_basic.cpp.

sync_prototype.diff
contains mods to a bunch of dlrvm files that allows the synch kernel contained in sync_prototype.c to be called.

> A prototype of a candidate synch algorithm for suspending a thread at a GC safepoint
> ------------------------------------------------------------------------------------
>
>                 Key: HARMONY-4908
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4908
>             Project: Harmony
>          Issue Type: Sub-task
>            Reporter: weldon washburn
>            Assignee: weldon washburn
>         Attachments: StateTrans.java, sync_prototype.c, sync_prototype.diff
>
>


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


[jira] Assigned: (HARMONY-4908) A prototype of a candidate synch algorithm for suspending a thread at a GC safepoint

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

weldon washburn reassigned HARMONY-4908:
----------------------------------------

    Assignee: weldon washburn

> A prototype of a candidate synch algorithm for suspending a thread at a GC safepoint
> ------------------------------------------------------------------------------------
>
>                 Key: HARMONY-4908
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4908
>             Project: Harmony
>          Issue Type: Sub-task
>            Reporter: weldon washburn
>            Assignee: weldon washburn
>         Attachments: StateTrans.java, sync_prototype.c
>
>


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


[jira] Closed: (HARMONY-4908) [drlvm][thread] A prototype of a candidate synch algorithm for suspending a thread at a GC safepoint

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

Gregory Shimansky closed HARMONY-4908.
--------------------------------------

    Resolution: Duplicate
      Assignee: Gregory Shimansky  (was: weldon washburn)

Ok closed as duplicate for HARMONY-4937.

> [drlvm][thread] A prototype of a candidate synch algorithm for suspending a thread at a GC safepoint
> ----------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-4908
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4908
>             Project: Harmony
>          Issue Type: Sub-task
>          Components: DRLVM
>            Reporter: weldon washburn
>            Assignee: Gregory Shimansky
>         Attachments: sp_hythread_suspend_other.c, StateTrans.java, sync_prototype.c, sync_prototype.diff
>
>


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


[jira] Updated: (HARMONY-4908) A prototype of a candidate synch algorithm for suspending a thread at a GC safepoint

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

weldon washburn updated HARMONY-4908:
-------------------------------------

    Attachment: sp_hythread_suspend_other.c

improved sp_hythread_suspend_other() algorithm.  Basically the first algorithm assert(0) if the target thread happens to blocked in a library.

> A prototype of a candidate synch algorithm for suspending a thread at a GC safepoint
> ------------------------------------------------------------------------------------
>
>                 Key: HARMONY-4908
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4908
>             Project: Harmony
>          Issue Type: Sub-task
>            Reporter: weldon washburn
>            Assignee: weldon washburn
>         Attachments: sp_hythread_suspend_other.c, StateTrans.java, sync_prototype.c, sync_prototype.diff
>
>


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


[jira] Updated: (HARMONY-4908) [drlvm][thread] A prototype of a candidate synch algorithm for suspending a thread at a GC safepoint

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

Alexey Varlamov updated HARMONY-4908:
-------------------------------------

    Component/s: DRLVM

> [drlvm][thread] A prototype of a candidate synch algorithm for suspending a thread at a GC safepoint
> ----------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-4908
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4908
>             Project: Harmony
>          Issue Type: Sub-task
>          Components: DRLVM
>            Reporter: weldon washburn
>            Assignee: weldon washburn
>         Attachments: sp_hythread_suspend_other.c, StateTrans.java, sync_prototype.c, sync_prototype.diff
>
>


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