This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: [RFA/JVMTI] Update jvmti.h
Tom Tromey wrote:
This is always fine provided it doesn't break anything :-).
Well it did! I forgot the attached as part of the patch which I've
committed that as obvious.
Doh!
updated ChangeLog
2006-08-31 Keith Seitz <keiths@redhat.com>
* include/jvmti_md.h: New file.
* jvmti.cc (_Jv_JVMTI_RawMonitorWait): Add millis parameter.
Pass millis to _Jv_CondWait.
Index: jvmti.cc
===================================================================
--- jvmti.cc (revision 116604)
+++ jvmti.cc (working copy)
@@ -156,11 +156,12 @@
}
static jvmtiError JNICALL
-_Jv_JVMTI_RawMonitorWait (MAYBE_UNUSED jvmtiEnv *env, jrawMonitorID monitor)
+_Jv_JVMTI_RawMonitorWait (MAYBE_UNUSED jvmtiEnv *env, jrawMonitorID monitor,
+ jlong millis)
{
if (monitor == NULL)
return JVMTI_ERROR_INVALID_MONITOR;
- int r = _Jv_CondWait (&monitor->condition, &monitor->mutex, 0, 0);
+ int r = _Jv_CondWait (&monitor->condition, &monitor->mutex, millis, 0);
if (r == _JV_NOT_OWNER)
return JVMTI_ERROR_NOT_MONITOR_OWNER;
if (r == _JV_INTERRUPTED)