< prev index next >

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

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 2001, 2005, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2001, 2019, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.  Oracle designates this

@@ -34,10 +34,11 @@
 #include "eventHelper.h"
 #include "classTrack.h"
 
 #include "standardHandlers.h"
 
+/* HandlerFunction - Invoked from event_callback() */
 static void
 handleClassPrepare(JNIEnv *env, EventInfo *evinfo,
                    HandlerNode *node,
                    struct bag *eventBag)
 {

@@ -73,18 +74,20 @@
     }
     eventHelper_recordEvent(evinfo, node->handlerID,
                             node->suspendPolicy, eventBag);
 }
 
+/* HandlerFunction - Invoked from event_callback() */
 static void
 handleGarbageCollectionFinish(JNIEnv *env, EventInfo *evinfo,
                   HandlerNode *node,
                   struct bag *eventBag)
 {
     JDI_ASSERT_MSG(JNI_FALSE, "Should never call handleGarbageCollectionFinish");
 }
 
+/* HandlerFunction - Invoked from event_callback() */
 static void
 handleFrameEvent(JNIEnv *env, EventInfo *evinfo,
                  HandlerNode *node,
                  struct bag *eventBag)
 {

@@ -120,10 +123,11 @@
                                  node->needReturnValue,
                                  returnValue,
                                  eventBag);
 }
 
+/* HandlerFunction - Invoked from event_callback() */
 static void
 genericHandler(JNIEnv *env, EventInfo *evinfo,
                HandlerNode *node,
                struct bag *eventBag)
 {

@@ -145,10 +149,16 @@
         case EI_VM_DEATH:
         case EI_MONITOR_CONTENDED_ENTER:
         case EI_MONITOR_CONTENDED_ENTERED:
         case EI_MONITOR_WAIT:
         case EI_MONITOR_WAITED:
+        case EI_FIBER_SCHEDULED:
+        case EI_FIBER_TERMINATED:
+        case EI_FIBER_MOUNT:
+        case EI_FIBER_UNMOUNT:
+        case EI_CONTINUATION_RUN:
+        case EI_CONTINUATION_YIELD:
             return &genericHandler;
 
         case EI_CLASS_PREPARE:
             return &handleClassPrepare;
 
< prev index next >