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,
45 EXT_MAX_EVENT_TYPE_VAL = EXT_EVENT_CLASS_UNLOAD
46 } jvmtiExtEvent;
220 jint extension_event_index,
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 // forward declaration
34 class JvmtiEventControllerPrivate;
35 class JvmtiEventController;
36 class JvmtiEnvThreadState;
37 class JvmtiFramePop;
38 class JvmtiEnvBase;
39
40
41 // Extension event support
42 //
43 // jvmtiExtEvent is the extensions equivalent of jvmtiEvent
44 // jvmtiExtCallbacks is the extensions equivalent of jvmtiEventCallbacks
45
46 // Extension events start JVMTI_MIN_EVENT_TYPE_VAL-1 and work towards 0.
47 typedef enum {
48 EXT_EVENT_CLASS_UNLOAD = JVMTI_MIN_EVENT_TYPE_VAL-1,
49 EXT_MIN_EVENT_TYPE_VAL = EXT_EVENT_CLASS_UNLOAD,
50 EXT_MAX_EVENT_TYPE_VAL = EXT_EVENT_CLASS_UNLOAD
51 } jvmtiExtEvent;
225 jint extension_event_index,
226 jvmtiExtensionEvent callback);
227
228 static void set_frame_pop(JvmtiEnvThreadState *env_thread, JvmtiFramePop fpop);
229 static void clear_frame_pop(JvmtiEnvThreadState *env_thread, JvmtiFramePop fpop);
230 static void clear_to_frame_pop(JvmtiEnvThreadState *env_thread, JvmtiFramePop fpop);
231
232 static void change_field_watch(jvmtiEvent event_type, bool added);
233
234 static void thread_started(JavaThread *thread);
235 static void thread_ended(JavaThread *thread);
236
237 static void env_initialize(JvmtiEnvBase *env);
238 static void env_dispose(JvmtiEnvBase *env);
239
240 static void vm_start();
241 static void vm_init();
242 static void vm_death();
243 };
244
245 #endif // SHARE_VM_PRIMS_JVMTIEVENTCONTROLLER_HPP
|