src/share/vm/prims/jvmtiEventController.hpp

Print this page


   1 /*
   2  * Copyright (c) 2003, 2004, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 








  25 #ifndef _JAVA_JVMTI_EVENT_CONTROLLER_H_
  26 #define _JAVA_JVMTI_EVENT_CONTROLLER_H_
  27 
  28 // forward declaration
  29 class JvmtiEventControllerPrivate;
  30 class JvmtiEventController;
  31 class JvmtiEnvThreadState;
  32 class JvmtiFramePop;
  33 class JvmtiEnvBase;
  34 
  35 
  36 // Extension event support
  37 //
  38 // jvmtiExtEvent is the extensions equivalent of jvmtiEvent
  39 // jvmtiExtCallbacks is the extensions equivalent of jvmtiEventCallbacks
  40 
  41 // Extension events start JVMTI_MIN_EVENT_TYPE_VAL-1 and work towards 0.
  42 typedef enum {
  43   EXT_EVENT_CLASS_UNLOAD = JVMTI_MIN_EVENT_TYPE_VAL-1,
  44   EXT_MIN_EVENT_TYPE_VAL = EXT_EVENT_CLASS_UNLOAD,


 221                                            jvmtiExtensionEvent callback);
 222 
 223   static void set_frame_pop(JvmtiEnvThreadState *env_thread, JvmtiFramePop fpop);
 224   static void clear_frame_pop(JvmtiEnvThreadState *env_thread, JvmtiFramePop fpop);
 225   static void clear_to_frame_pop(JvmtiEnvThreadState *env_thread, JvmtiFramePop fpop);
 226 
 227   static void change_field_watch(jvmtiEvent event_type, bool added);
 228 
 229   static void thread_started(JavaThread *thread);
 230   static void thread_ended(JavaThread *thread);
 231 
 232   static void env_initialize(JvmtiEnvBase *env);
 233   static void env_dispose(JvmtiEnvBase *env);
 234 
 235   static void vm_start();
 236   static void vm_init();
 237   static void vm_death();
 238 };
 239 
 240 #endif   /* _JAVA_JVMTI_EVENT_CONTROLLER_H_ */


   1 /*
   2  * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #ifndef SHARE_VM_PRIMS_JVMTIEVENTCONTROLLER_HPP
  26 #define SHARE_VM_PRIMS_JVMTIEVENTCONTROLLER_HPP
  27 
  28 #include "jvmtifiles/jvmti.h"
  29 #include "memory/allocation.hpp"
  30 #include "memory/allocation.inline.hpp"
  31 #include "utilities/globalDefinitions.hpp"
  32 
  33 #ifndef _JAVA_JVMTI_EVENT_CONTROLLER_H_
  34 #define _JAVA_JVMTI_EVENT_CONTROLLER_H_
  35 
  36 // forward declaration
  37 class JvmtiEventControllerPrivate;
  38 class JvmtiEventController;
  39 class JvmtiEnvThreadState;
  40 class JvmtiFramePop;
  41 class JvmtiEnvBase;
  42 
  43 
  44 // Extension event support
  45 //
  46 // jvmtiExtEvent is the extensions equivalent of jvmtiEvent
  47 // jvmtiExtCallbacks is the extensions equivalent of jvmtiEventCallbacks
  48 
  49 // Extension events start JVMTI_MIN_EVENT_TYPE_VAL-1 and work towards 0.
  50 typedef enum {
  51   EXT_EVENT_CLASS_UNLOAD = JVMTI_MIN_EVENT_TYPE_VAL-1,
  52   EXT_MIN_EVENT_TYPE_VAL = EXT_EVENT_CLASS_UNLOAD,


 229                                            jvmtiExtensionEvent callback);
 230 
 231   static void set_frame_pop(JvmtiEnvThreadState *env_thread, JvmtiFramePop fpop);
 232   static void clear_frame_pop(JvmtiEnvThreadState *env_thread, JvmtiFramePop fpop);
 233   static void clear_to_frame_pop(JvmtiEnvThreadState *env_thread, JvmtiFramePop fpop);
 234 
 235   static void change_field_watch(jvmtiEvent event_type, bool added);
 236 
 237   static void thread_started(JavaThread *thread);
 238   static void thread_ended(JavaThread *thread);
 239 
 240   static void env_initialize(JvmtiEnvBase *env);
 241   static void env_dispose(JvmtiEnvBase *env);
 242 
 243   static void vm_start();
 244   static void vm_init();
 245   static void vm_death();
 246 };
 247 
 248 #endif   /* _JAVA_JVMTI_EVENT_CONTROLLER_H_ */
 249 
 250 #endif // SHARE_VM_PRIMS_JVMTIEVENTCONTROLLER_HPP