mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 15:19:59 +07:00
[debugger] IDEA-351125 Pass the thead explicitly to filter the current coroutine
The evaluation may be performed on another thread so Thread.currentThread() better should not be used GitOrigin-RevId: fdded0d4877c9ee36193f5d2ce082722a2a8264d
This commit is contained in:
committed by
intellij-monorepo-bot
parent
d5161f5519
commit
ccce9c9613
@@ -14,8 +14,7 @@ public final class CoroutinesDebugHelper {
|
||||
private static final String DEBUG_COROUTINE_INFO_FIELD = "info";
|
||||
private static final String SEQUENCE_NUMBER_FIELD = "sequenceNumber";
|
||||
|
||||
public static long[] getCoroutinesRunningOnCurrentThread(Object debugProbes) throws ReflectiveOperationException {
|
||||
Thread currentThread = Thread.currentThread();
|
||||
public static long[] getCoroutinesRunningOnCurrentThread(Object debugProbes, Thread currentThread) throws ReflectiveOperationException {
|
||||
List<Long> coroutinesIds = new ArrayList<>();
|
||||
List infos = (List)invoke(debugProbes, DUMP_COROUTINES_INFO_METHOD);
|
||||
for (Object info : infos) {
|
||||
|
||||
Reference in New Issue
Block a user