Skip to content

Commit

Permalink
Remove old kotlin coroutine instrumentation (#1185)
Browse files Browse the repository at this point in the history
  • Loading branch information
trask authored Sep 11, 2020
1 parent d2d19ef commit 7cf42b1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ public AbstractExecutorInstrumentation(String... additionalNames) {
"java.util.concurrent.ForkJoinPool",
"java.util.concurrent.ScheduledThreadPoolExecutor",
"java.util.concurrent.ThreadPoolExecutor",
"kotlinx.coroutines.scheduling.CoroutineScheduler",
"org.eclipse.jetty.util.thread.QueuedThreadPool",
"org.eclipse.jetty.util.thread.ReservedThreadExecutor",
"org.glassfish.grizzly.threadpool.GrizzlyExecutorService",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,6 @@ public Map<String, String> contextStore() {
@Override
public Map<? extends ElementMatcher<? super MethodDescription>, String> transformers() {
Map<ElementMatcher<? super MethodDescription>, String> transformers = new HashMap<>();
transformers.put( // kotlinx.coroutines.scheduling.CoroutineScheduler
named("dispatch")
.and(takesArgument(0, Runnable.class))
.and(takesArgument(1, named("kotlinx.coroutines.scheduling.TaskContext"))),
JavaExecutorInstrumentation.class.getName() + "$SetExecuteRunnableStateAdvice");

transformers.put( // org.eclipse.jetty.util.thread.QueuedThreadPool
named("dispatch").and(takesArguments(1)).and(takesArgument(0, Runnable.class)),
Expand Down

0 comments on commit 7cf42b1

Please sign in to comment.