< prev index next >

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

Print this page

        

@@ -246,10 +246,19 @@
     if (serror != JDWP_ERROR(NONE)) {
         outStream_setError(out, serror);
         return JNI_TRUE;
     }
 
+    if (isFiber(thread)) {
+        thread = threadControl_getFiberCarrierOrHelperThread(thread);
+        if (thread == NULL) {
+            /* fiber fixme: we failed to get the helper thread. Just return 0 locals. */
+            (void)outStream_writeInt(out, 0);
+            return JNI_TRUE;
+        }
+    }
+
     (void)outStream_writeInt(out, variableCount);
     for (i = 0; (i < variableCount) && !outStream_error(out); i++) {
         jint slot;
         jbyte typeKey;
         FrameNumber fnum;

@@ -446,10 +455,11 @@
         outStream_setError(out, JDWP_ERROR(INVALID_THREAD));
         return JNI_TRUE;
     }
 
     fnum = getFrameNumber(frame);
+    /* fiber fixme: add fiber support */
     error = threadControl_popFrames(thread, fnum);
     if (error != JVMTI_ERROR_NONE) {
         serror = map2jdwpError(error);
         outStream_setError(out, serror);
     }
< prev index next >