NativeThread.java (NativeThread): Removed assignment to alive_flag', call init'.

2000-08-23  Alexandre Petit-Bianco  <apbianco@cygnus.com>

	* gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
	to `alive_flag', call `init'.
	(init): New native method.
	* gnu/gcj/jni/natNativeThread.cc (init): New native method
	implementation.

(http://sources.redhat.com/ml/java-patches/2000-q3/msg00142.html)

From-SVN: r35931
This commit is contained in:
Alexandre Petit-Bianco 2000-08-24 02:16:57 +00:00 committed by Alexandre Petit-Bianco
parent 7def125130
commit 6d958acf09
3 changed files with 16 additions and 1 deletions

View File

@ -1,3 +1,11 @@
2000-08-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
* gnu/gcj/jni/NativeThread.java (NativeThread): Removed assignment
to `alive_flag', call `init'.
(init): New native method.
* gnu/gcj/jni/natNativeThread.cc (init): New native method
implementation.
2000-08-21 Mark Wielaard <mark@klomp.org>
* Makefile.in: Rebuilt.

View File

@ -20,9 +20,10 @@ public class NativeThread extends Thread
public NativeThread (ThreadGroup g, String name)
{
super (g, null, name);
alive_flag = true;
init ();
}
// Call this to mark the thread as finished.
public native void finish ();
public native void init ();
}

View File

@ -22,3 +22,9 @@ gnu::gcj::jni::NativeThread::finish ()
{
finish_ ();
}
void
gnu::gcj::jni::NativeThread::init ()
{
alive_flag = true; // alive_flag is private in java.lang.Thread
}