* 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)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35931
138bc75d-0d04-0410-961f-
82ee72b054a4
+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.
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 ();
}
{
finish_ ();
}
+
+void
+gnu::gcj::jni::NativeThread::init ()
+{
+ alive_flag = true; // alive_flag is private in java.lang.Thread
+}