Skip to content
Permalink
Browse files
Get rid of eventFilter_setStepFilterThread(). No longer needed.
  • Loading branch information
plummercj committed Feb 27, 2021
1 parent bcc8ffe commit bcc3993de40d3428d69c514e7992adb84190baa7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
@@ -977,27 +977,6 @@ eventFilter_setStepFilter(HandlerNode *node, jint index,
return JVMTI_ERROR_NONE;
}

/*
* Finds the step filter in a node, and sets the thread for that filter.
* vthread fixme: not used. delete once we know for sure we'll never need it.
*/
void
eventFilter_setStepFilterThread(HandlerNode *node, jthread thread)
{
JNIEnv *env = getEnv();
Filter *filter = FILTERS_ARRAY(node);
int i;
for (i = 0; i < FILTER_COUNT(node); ++i, ++filter) {
switch (filter->modifier) {
case JDWP_REQUEST_MODIFIER(Step):
tossGlobalRef(env, &(filter->u.Step.thread));
saveGlobalRef(env, thread, &(filter->u.Step.thread));
return;
}
}
JDI_ASSERT(JNI_FALSE); /* We should have found a step filter, but didn't. */
}

jvmtiError
eventFilter_setSourceNameMatchFilter(HandlerNode *node,
jint index,
@@ -66,7 +66,6 @@ jvmtiError eventFilter_setStepFilter(HandlerNode *node,
jint index,
jthread thread,
jint size, jint depth);
void eventFilter_setStepFilterThread(HandlerNode *node, jthread thread);
jvmtiError eventFilter_setSourceNameMatchFilter(HandlerNode *node,
jint index,
char *sourceNamePattern);

0 comments on commit bcc3993

Please sign in to comment.