Commit 59294c2b by Keith Seitz Committed by Keith Seitz

jvmti.cc (_Jv_JVMTI_RawMonitorWait): Add millis parameter.

        * jvmti.cc (_Jv_JVMTI_RawMonitorWait): Add millis parameter.
        Pass millis to _Jv_CondWait.

From-SVN: r116611
parent 9d5941ee
...@@ -2,6 +2,9 @@ ...@@ -2,6 +2,9 @@
* include/jvmti_md.h: New file. * include/jvmti_md.h: New file.
* jvmti.cc (_Jv_JVMTI_RawMonitorWait): Add millis parameter.
Pass millis to _Jv_CondWait.
2006-08-31 Tom Tromey <tromey@redhat.com> 2006-08-31 Tom Tromey <tromey@redhat.com>
PR libgcj/28698: PR libgcj/28698:
......
...@@ -156,11 +156,12 @@ _Jv_JVMTI_RawMonitorExit (MAYBE_UNUSED jvmtiEnv *env, jrawMonitorID monitor) ...@@ -156,11 +156,12 @@ _Jv_JVMTI_RawMonitorExit (MAYBE_UNUSED jvmtiEnv *env, jrawMonitorID monitor)
} }
static jvmtiError JNICALL 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) if (monitor == NULL)
return JVMTI_ERROR_INVALID_MONITOR; 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) if (r == _JV_NOT_OWNER)
return JVMTI_ERROR_NOT_MONITOR_OWNER; return JVMTI_ERROR_NOT_MONITOR_OWNER;
if (r == _JV_INTERRUPTED) if (r == _JV_INTERRUPTED)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment