harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geir Magnusson Jr." <g...@pobox.com>
Subject Re: [drlvm] stress.Mix / MegaSpawn threading bug
Date Fri, 12 Jan 2007 23:43:30 GMT

On Jan 12, 2007, at 5:02 AM, Salikh Zakirov wrote:

>> 2007/1/11, Gregory Shimansky <gshimansky@gmail.com>:
>>> Another reason for hanging threads is that they wait in  
>>> Thread.start().
>>> When a new thread is started, it has to notify a lock object, in  
>>> order
>>> to signal the parent thread that it has been created. This  
>>> notification
>>> is sent from java code of the Thread before user code is executed.
> Alexey Varlamov replied:
>> IMO the problem is in this design rather than its impl. The
>> specification for j.l.Thread.start() does not require that execution
>> of run() begins strictly before the start() returned.
> This requirement is implicated by specification of Thread.isAlive():
>     Tests if this thread is alive. A thread is alive
>     if it has been started and has not yet died.

I wonder how long it took the EG to come up with that...


View raw message