[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Small patch for Thread.java
From: |
Brian Jones |
Subject: |
Re: Small patch for Thread.java |
Date: |
07 Apr 2003 23:36:09 -0400 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 |
Archie Cobbs <address@hidden> writes:
> Hi,
>
> Here's a patch that might help the next VM implementor after me... :-)
>
> Thanks,
> -Archie
Committed.
Thanks,
Brian
>
> __________________________________________________________________________
> Archie Cobbs * Precision I/O * http://www.precisionio.com
>
> --- /home/archie/classpath/classpath-0.05/vm/reference/java/lang/Thread.java
> Thu Oct 3 09:07:34 2002
> +++ Thread.java Thu Mar 6 15:38:04 2003
> @@ -279,7 +295,14 @@
> }
>
> /**
> - * Get the currently executing Thread.
> + * Get the currently executing Thread. In the situation that the
> + * currently running thread was created by native code and doesn't
> + * have an associated Thread object yet, currentThread() should set
> + * a flag and then attempt to construct and return a new Thread object.
> + * When currentThread() is invoked again recursively by the Thread
> + * constructor, the flag will already be set and in that second case
> + * currentThread() should just return null. currentThread() should not
> + * return a non-null value until after the constructor has returned.
> *
> * @return the currently executing Thread
> */
>
>
> _______________________________________________
> Classpath mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/classpath
>
--
Brian Jones <address@hidden>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Small patch for Thread.java,
Brian Jones <=