natClass.cc: Fixed notification of threads when class initialization is complete.
authorMatt Welsh <mdw@cs.berkeley.edu>
Thu, 2 Sep 1999 03:46:35 +0000 (03:46 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Thu, 2 Sep 1999 03:46:35 +0000 (03:46 +0000)
* java/lang/natClass.cc: Fixed notification of threads
when class initialization is complete.

From-SVN: r29043

libjava/ChangeLog
libjava/java/lang/natClass.cc

index 59f7e94aa6ccf527ee0c3fa20318e1c0b082d855..82833d327f587564262077aaa9f1d4f9b78b47f3 100644 (file)
@@ -1,3 +1,8 @@
+1999-09-01  Matt Welsh <mdw@cs.berkeley.edu>
+
+       * java/lang/natClass.cc: Fixed notification of threads
+       when class initialization is complete.
+
 1999-09-01  Tom Tromey  <tromey@cygnus.com>
 
        * java/lang/reflect/Modifier.java (ALL_FLAGS): New constant.
index ff5e9c65da58e5b9d53e0f09c6add2316dd295f4..2a8bb3b3f9a1cecc5d78cd3e35da04bae23443e8 100644 (file)
@@ -455,7 +455,7 @@ java::lang::Class::initializeClass (void)
          // Caught an exception.
          _Jv_MonitorEnter (this);
          state = JV_STATE_ERROR;
-         notify ();
+         notifyAll ();
          _Jv_MonitorExit (this);
          JvThrow (except);
        }
@@ -482,7 +482,7 @@ java::lang::Class::initializeClass (void)
       _Jv_MonitorEnter (this);
       state = JV_STATE_ERROR;
     }
-  notify ();
+  notifyAll ();
   _Jv_MonitorExit (this);
   if (except)
     JvThrow (except);