Skip to content

Commit 3fbccb0

Browse files
committed
8322978: Remove debug agent debugMonitorTimedWait() function. It is no longer used.
Reviewed-by: dholmes, sspitsyn
1 parent ad31ec5 commit 3fbccb0

File tree

2 files changed

+2
-20
lines changed

2 files changed

+2
-20
lines changed

src/jdk.jdwp.agent/share/native/libjdwp/util.c

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1998, 2022, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1998, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -1073,23 +1073,6 @@ debugMonitorWait(jrawMonitorID monitor)
10731073
}
10741074
}
10751075

1076-
void
1077-
debugMonitorTimedWait(jrawMonitorID monitor, jlong millis)
1078-
{
1079-
jvmtiError error;
1080-
error = JVMTI_FUNC_PTR(gdata->jvmti,RawMonitorWait)
1081-
(gdata->jvmti, monitor, millis);
1082-
if (error == JVMTI_ERROR_INTERRUPT) {
1083-
/* See comment above */
1084-
handleInterrupt();
1085-
error = JVMTI_ERROR_NONE;
1086-
}
1087-
error = ignore_vm_death(error);
1088-
if (error != JVMTI_ERROR_NONE) {
1089-
EXIT_ERROR(error, "on raw monitor timed wait");
1090-
}
1091-
}
1092-
10931076
void
10941077
debugMonitorNotify(jrawMonitorID monitor)
10951078
{

src/jdk.jdwp.agent/share/native/libjdwp/util.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1998, 2022, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1998, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -354,7 +354,6 @@ jrawMonitorID debugMonitorCreate(char *name);
354354
void debugMonitorEnter(jrawMonitorID theLock);
355355
void debugMonitorExit(jrawMonitorID theLock);
356356
void debugMonitorWait(jrawMonitorID theLock);
357-
void debugMonitorTimedWait(jrawMonitorID theLock, jlong millis);
358357
void debugMonitorNotify(jrawMonitorID theLock);
359358
void debugMonitorNotifyAll(jrawMonitorID theLock);
360359
void debugMonitorDestroy(jrawMonitorID theLock);

0 commit comments

Comments
 (0)