Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
- $Id: java_lang_VMObject.c 6213 2006-12-18 17:36:06Z twisti $
-
*/
if (jvmti) jvmti_MonitorWaiting(true, o, ms);
#endif
+ if (ms < 0) {
+/* exceptions_throw_illegalargumentexception("argument out of range"); */
+ exceptions_throw_illegalargumentexception();
+ return;
+ }
+
#if defined(ENABLE_THREADS)
lock_wait_for_object(&LLNI_field_direct(o, header), ms, ns);
#endif