harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nikolay Kuznetsov" <nikolay.kuznet...@gmail.com>
Subject Re: [drlvm][threading] Thread.suspend() causes thread_native_fat_monitor.cpp::monitor_wait_impl() to give up the monitor
Date Mon, 04 Dec 2006 17:09:27 GMT
Weldon, I've found the cause that resulted in that code to appear.
This one covers the situation when waiting thread being suspended and
notified after that. This code is the part of the patch that prevents
suspended thread from acquiring that lock after notification.

Nik.

On 12/4/06, Weldon Washburn <weldonwjw@gmail.com> wrote:
> The following code does not look right.  I looked in the JVM spec.  I can't
> find any mention that a Thread.suspend() should cause the target thread to
> give up any java lock.  I am trying to construct a test to confirm if this
> is a problem or not.  Anybody have any suggestions?
>
> line 216:
>
>
> if(self->suspend_request) {
>
>     hymutex_unlock(mon_ptr->mutex);
>
>     hythread_safe_point();
>
>     hymutex_lock(mon_ptr->mutex);
>
> }
>
>
> --
> Weldon Washburn
> Intel Enterprise Solutions Software Division
>
>

Mime
View raw message