hotspot/src/share/vm/prims/jvmtiEventController.hpp
author kamg
Mon, 06 Dec 2010 20:21:15 -0500
changeset 7413 59b978f8fbdf
parent 7397 5b173b4ca846
permissions -rw-r--r--
7003782: Update JVMTI version to 1.2 for jdk7 Summary: Update minor version to 1.2 for jdk7 Reviewed-by: phh, dcubed
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     1
/*
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
     2
 * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
489c9b5090e2 Initial load
duke
parents:
diff changeset
     4
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
489c9b5090e2 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
489c9b5090e2 Initial load
duke
parents:
diff changeset
     7
 * published by the Free Software Foundation.
489c9b5090e2 Initial load
duke
parents:
diff changeset
     8
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
489c9b5090e2 Initial load
duke
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
489c9b5090e2 Initial load
duke
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
489c9b5090e2 Initial load
duke
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
489c9b5090e2 Initial load
duke
parents:
diff changeset
    13
 * accompanied this code).
489c9b5090e2 Initial load
duke
parents:
diff changeset
    14
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
489c9b5090e2 Initial load
duke
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    18
 *
5547
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 1
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 1
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 1
diff changeset
    21
 * questions.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    22
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
    23
 */
489c9b5090e2 Initial load
duke
parents:
diff changeset
    24
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    25
#ifndef SHARE_VM_PRIMS_JVMTIEVENTCONTROLLER_HPP
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    26
#define SHARE_VM_PRIMS_JVMTIEVENTCONTROLLER_HPP
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    27
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    28
#include "jvmtifiles/jvmti.h"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    29
#include "memory/allocation.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    30
#include "memory/allocation.inline.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    31
#include "utilities/globalDefinitions.hpp"
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    32
489c9b5090e2 Initial load
duke
parents:
diff changeset
    33
// forward declaration
489c9b5090e2 Initial load
duke
parents:
diff changeset
    34
class JvmtiEventControllerPrivate;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    35
class JvmtiEventController;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    36
class JvmtiEnvThreadState;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    37
class JvmtiFramePop;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    38
class JvmtiEnvBase;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    39
489c9b5090e2 Initial load
duke
parents:
diff changeset
    40
489c9b5090e2 Initial load
duke
parents:
diff changeset
    41
// Extension event support
489c9b5090e2 Initial load
duke
parents:
diff changeset
    42
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
    43
// jvmtiExtEvent is the extensions equivalent of jvmtiEvent
489c9b5090e2 Initial load
duke
parents:
diff changeset
    44
// jvmtiExtCallbacks is the extensions equivalent of jvmtiEventCallbacks
489c9b5090e2 Initial load
duke
parents:
diff changeset
    45
489c9b5090e2 Initial load
duke
parents:
diff changeset
    46
// Extension events start JVMTI_MIN_EVENT_TYPE_VAL-1 and work towards 0.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    47
typedef enum {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    48
  EXT_EVENT_CLASS_UNLOAD = JVMTI_MIN_EVENT_TYPE_VAL-1,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    49
  EXT_MIN_EVENT_TYPE_VAL = EXT_EVENT_CLASS_UNLOAD,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    50
  EXT_MAX_EVENT_TYPE_VAL = EXT_EVENT_CLASS_UNLOAD
489c9b5090e2 Initial load
duke
parents:
diff changeset
    51
} jvmtiExtEvent;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    52
489c9b5090e2 Initial load
duke
parents:
diff changeset
    53
typedef struct {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    54
  jvmtiExtensionEvent ClassUnload;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    55
} jvmtiExtEventCallbacks;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    56
489c9b5090e2 Initial load
duke
parents:
diff changeset
    57
489c9b5090e2 Initial load
duke
parents:
diff changeset
    58
// The complete range of events is EXT_MIN_EVENT_TYPE_VAL to
489c9b5090e2 Initial load
duke
parents:
diff changeset
    59
// JVMTI_MAX_EVENT_TYPE_VAL (inclusive and contiguous).
489c9b5090e2 Initial load
duke
parents:
diff changeset
    60
const int TOTAL_MIN_EVENT_TYPE_VAL = EXT_MIN_EVENT_TYPE_VAL;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    61
const int TOTAL_MAX_EVENT_TYPE_VAL = JVMTI_MAX_EVENT_TYPE_VAL;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    62
489c9b5090e2 Initial load
duke
parents:
diff changeset
    63
489c9b5090e2 Initial load
duke
parents:
diff changeset
    64
///////////////////////////////////////////////////////////////
489c9b5090e2 Initial load
duke
parents:
diff changeset
    65
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
    66
// JvmtiEventEnabled
489c9b5090e2 Initial load
duke
parents:
diff changeset
    67
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
    68
// Utility class
489c9b5090e2 Initial load
duke
parents:
diff changeset
    69
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
    70
// A boolean array indexed by event_type, used as an internal
489c9b5090e2 Initial load
duke
parents:
diff changeset
    71
// data structure to track what JVMTI event types are enabled.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    72
// Used for user set enabling and disabling (globally and on a
489c9b5090e2 Initial load
duke
parents:
diff changeset
    73
// per thread basis), and for computed merges across environments,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    74
// threads and the VM as a whole.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    75
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
    76
// for inlines see jvmtiEventController_inline.hpp
489c9b5090e2 Initial load
duke
parents:
diff changeset
    77
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
    78
489c9b5090e2 Initial load
duke
parents:
diff changeset
    79
class JvmtiEventEnabled VALUE_OBJ_CLASS_SPEC {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    80
private:
489c9b5090e2 Initial load
duke
parents:
diff changeset
    81
  friend class JvmtiEventControllerPrivate;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    82
  jlong _enabled_bits;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    83
#ifndef PRODUCT
489c9b5090e2 Initial load
duke
parents:
diff changeset
    84
  enum {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    85
    JEE_INIT_GUARD = 0xEAD0
489c9b5090e2 Initial load
duke
parents:
diff changeset
    86
  } _init_guard;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    87
#endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
    88
  static jlong bit_for(jvmtiEvent event_type);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    89
  jlong get_bits();
489c9b5090e2 Initial load
duke
parents:
diff changeset
    90
  void set_bits(jlong bits);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    91
public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
    92
  JvmtiEventEnabled();
489c9b5090e2 Initial load
duke
parents:
diff changeset
    93
  void clear();
489c9b5090e2 Initial load
duke
parents:
diff changeset
    94
  bool is_enabled(jvmtiEvent event_type);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    95
  void set_enabled(jvmtiEvent event_type, bool enabled);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    96
};
489c9b5090e2 Initial load
duke
parents:
diff changeset
    97
489c9b5090e2 Initial load
duke
parents:
diff changeset
    98
489c9b5090e2 Initial load
duke
parents:
diff changeset
    99
///////////////////////////////////////////////////////////////
489c9b5090e2 Initial load
duke
parents:
diff changeset
   100
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
   101
// JvmtiEnvThreadEventEnable
489c9b5090e2 Initial load
duke
parents:
diff changeset
   102
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
   103
// JvmtiEventController data specific to a particular environment and thread.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   104
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
   105
// for inlines see jvmtiEventController_inline.hpp
489c9b5090e2 Initial load
duke
parents:
diff changeset
   106
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
   107
489c9b5090e2 Initial load
duke
parents:
diff changeset
   108
class JvmtiEnvThreadEventEnable VALUE_OBJ_CLASS_SPEC {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   109
private:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   110
  friend class JvmtiEventControllerPrivate;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   111
  JvmtiEventEnabled _event_user_enabled;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   112
  JvmtiEventEnabled _event_enabled;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   113
489c9b5090e2 Initial load
duke
parents:
diff changeset
   114
public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   115
  JvmtiEnvThreadEventEnable();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   116
  ~JvmtiEnvThreadEventEnable();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   117
  bool is_enabled(jvmtiEvent event_type);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   118
  void set_user_enabled(jvmtiEvent event_type, bool enabled);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   119
};
489c9b5090e2 Initial load
duke
parents:
diff changeset
   120
489c9b5090e2 Initial load
duke
parents:
diff changeset
   121
489c9b5090e2 Initial load
duke
parents:
diff changeset
   122
///////////////////////////////////////////////////////////////
489c9b5090e2 Initial load
duke
parents:
diff changeset
   123
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
   124
// JvmtiThreadEventEnable
489c9b5090e2 Initial load
duke
parents:
diff changeset
   125
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
   126
// JvmtiEventController data specific to a particular thread.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   127
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
   128
// for inlines see jvmtiEventController_inline.hpp
489c9b5090e2 Initial load
duke
parents:
diff changeset
   129
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
   130
489c9b5090e2 Initial load
duke
parents:
diff changeset
   131
class JvmtiThreadEventEnable VALUE_OBJ_CLASS_SPEC {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   132
private:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   133
  friend class JvmtiEventControllerPrivate;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   134
  JvmtiEventEnabled _event_enabled;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   135
489c9b5090e2 Initial load
duke
parents:
diff changeset
   136
public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   137
  JvmtiThreadEventEnable();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   138
  ~JvmtiThreadEventEnable();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   139
  bool is_enabled(jvmtiEvent event_type);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   140
};
489c9b5090e2 Initial load
duke
parents:
diff changeset
   141
489c9b5090e2 Initial load
duke
parents:
diff changeset
   142
489c9b5090e2 Initial load
duke
parents:
diff changeset
   143
///////////////////////////////////////////////////////////////
489c9b5090e2 Initial load
duke
parents:
diff changeset
   144
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
   145
// JvmtiEnvEventEnable
489c9b5090e2 Initial load
duke
parents:
diff changeset
   146
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
   147
// JvmtiEventController data specific to a particular environment.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   148
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
   149
// for inlines see jvmtiEventController_inline.hpp
489c9b5090e2 Initial load
duke
parents:
diff changeset
   150
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
   151
489c9b5090e2 Initial load
duke
parents:
diff changeset
   152
class JvmtiEnvEventEnable VALUE_OBJ_CLASS_SPEC {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   153
private:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   154
  friend class JvmtiEventControllerPrivate;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   155
489c9b5090e2 Initial load
duke
parents:
diff changeset
   156
  // user set global event enablement indexed by jvmtiEvent
489c9b5090e2 Initial load
duke
parents:
diff changeset
   157
  JvmtiEventEnabled _event_user_enabled;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   158
489c9b5090e2 Initial load
duke
parents:
diff changeset
   159
  // this flag indicates the presence (true) or absence (false) of event callbacks
489c9b5090e2 Initial load
duke
parents:
diff changeset
   160
  // it is indexed by jvmtiEvent
489c9b5090e2 Initial load
duke
parents:
diff changeset
   161
  JvmtiEventEnabled _event_callback_enabled;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   162
489c9b5090e2 Initial load
duke
parents:
diff changeset
   163
  // indexed by jvmtiEvent true if enabled globally or on any thread.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   164
  // True only if there is a callback for it.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   165
  JvmtiEventEnabled _event_enabled;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   166
489c9b5090e2 Initial load
duke
parents:
diff changeset
   167
public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   168
  JvmtiEnvEventEnable();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   169
  ~JvmtiEnvEventEnable();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   170
  bool is_enabled(jvmtiEvent event_type);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   171
  void set_user_enabled(jvmtiEvent event_type, bool enabled);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   172
};
489c9b5090e2 Initial load
duke
parents:
diff changeset
   173
489c9b5090e2 Initial load
duke
parents:
diff changeset
   174
489c9b5090e2 Initial load
duke
parents:
diff changeset
   175
///////////////////////////////////////////////////////////////
489c9b5090e2 Initial load
duke
parents:
diff changeset
   176
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
   177
// JvmtiEventController
489c9b5090e2 Initial load
duke
parents:
diff changeset
   178
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
   179
// The class is the access point for all actions that change
489c9b5090e2 Initial load
duke
parents:
diff changeset
   180
// which events are active, this include:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   181
//      enabling and disabling events
489c9b5090e2 Initial load
duke
parents:
diff changeset
   182
//      changing the callbacks/eventhook (they may be null)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   183
//      setting and clearing field watchpoints
489c9b5090e2 Initial load
duke
parents:
diff changeset
   184
//      setting frame pops
489c9b5090e2 Initial load
duke
parents:
diff changeset
   185
//      encountering frame pops
489c9b5090e2 Initial load
duke
parents:
diff changeset
   186
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
   187
// for inlines see jvmtiEventController_inline.hpp
489c9b5090e2 Initial load
duke
parents:
diff changeset
   188
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
   189
489c9b5090e2 Initial load
duke
parents:
diff changeset
   190
class JvmtiEventController : AllStatic {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   191
private:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   192
  friend class JvmtiEventControllerPrivate;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   193
489c9b5090e2 Initial load
duke
parents:
diff changeset
   194
  // for all environments, global array indexed by jvmtiEvent
489c9b5090e2 Initial load
duke
parents:
diff changeset
   195
  static JvmtiEventEnabled _universal_global_event_enabled;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   196
489c9b5090e2 Initial load
duke
parents:
diff changeset
   197
public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   198
  static bool is_enabled(jvmtiEvent event_type);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   199
489c9b5090e2 Initial load
duke
parents:
diff changeset
   200
  // events that can ONLY be enabled/disabled globally (can't toggle on individual threads).
489c9b5090e2 Initial load
duke
parents:
diff changeset
   201
  static bool is_global_event(jvmtiEvent event_type);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   202
489c9b5090e2 Initial load
duke
parents:
diff changeset
   203
  // is the event_type valid?
489c9b5090e2 Initial load
duke
parents:
diff changeset
   204
  // to do: check against valid event array
489c9b5090e2 Initial load
duke
parents:
diff changeset
   205
  static bool is_valid_event_type(jvmtiEvent event_type) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   206
    return ((int)event_type >= TOTAL_MIN_EVENT_TYPE_VAL)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   207
        && ((int)event_type <= TOTAL_MAX_EVENT_TYPE_VAL);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   208
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   209
489c9b5090e2 Initial load
duke
parents:
diff changeset
   210
  // Use (thread == NULL) to enable/disable an event globally.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   211
  // Use (thread != NULL) to enable/disable an event for a particular thread.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   212
  // thread is ignored for events that can only be specified globally
489c9b5090e2 Initial load
duke
parents:
diff changeset
   213
  static void set_user_enabled(JvmtiEnvBase *env, JavaThread *thread,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   214
                               jvmtiEvent event_type, bool enabled);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   215
489c9b5090e2 Initial load
duke
parents:
diff changeset
   216
  // Setting callbacks changes computed enablement and must be done
489c9b5090e2 Initial load
duke
parents:
diff changeset
   217
  // at a safepoint otherwise a NULL callback could be attempted
489c9b5090e2 Initial load
duke
parents:
diff changeset
   218
  static void set_event_callbacks(JvmtiEnvBase *env,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   219
                                  const jvmtiEventCallbacks* callbacks,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   220
                                  jint size_of_callbacks);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   221
489c9b5090e2 Initial load
duke
parents:
diff changeset
   222
  // Sets the callback function for a single extension event and enables
489c9b5090e2 Initial load
duke
parents:
diff changeset
   223
  // (or disables it).
489c9b5090e2 Initial load
duke
parents:
diff changeset
   224
  static void set_extension_event_callback(JvmtiEnvBase* env,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   225
                                           jint extension_event_index,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   226
                                           jvmtiExtensionEvent callback);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   227
489c9b5090e2 Initial load
duke
parents:
diff changeset
   228
  static void set_frame_pop(JvmtiEnvThreadState *env_thread, JvmtiFramePop fpop);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   229
  static void clear_frame_pop(JvmtiEnvThreadState *env_thread, JvmtiFramePop fpop);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   230
  static void clear_to_frame_pop(JvmtiEnvThreadState *env_thread, JvmtiFramePop fpop);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   231
489c9b5090e2 Initial load
duke
parents:
diff changeset
   232
  static void change_field_watch(jvmtiEvent event_type, bool added);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   233
489c9b5090e2 Initial load
duke
parents:
diff changeset
   234
  static void thread_started(JavaThread *thread);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   235
  static void thread_ended(JavaThread *thread);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   236
489c9b5090e2 Initial load
duke
parents:
diff changeset
   237
  static void env_initialize(JvmtiEnvBase *env);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   238
  static void env_dispose(JvmtiEnvBase *env);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   239
489c9b5090e2 Initial load
duke
parents:
diff changeset
   240
  static void vm_start();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   241
  static void vm_init();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   242
  static void vm_death();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   243
};
489c9b5090e2 Initial load
duke
parents:
diff changeset
   244
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
   245
#endif // SHARE_VM_PRIMS_JVMTIEVENTCONTROLLER_HPP