src/hotspot/share/prims/jvmtiEventController.hpp
author coleenp
Thu, 10 Jan 2019 15:13:51 -0500
changeset 53244 9807daeb47c4
parent 49364 601146c66cad
permissions -rw-r--r--
8216167: Update include guards to reflect correct directories Summary: Use script and some manual fixup to fix directores names in include guards. Reviewed-by: lfoltan, eosterlund, kbarrett
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     1
/*
53244
9807daeb47c4 8216167: Update include guards to reflect correct directories
coleenp
parents: 49364
diff changeset
     2
 * Copyright (c) 2003, 2019, 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
53244
9807daeb47c4 8216167: Update include guards to reflect correct directories
coleenp
parents: 49364
diff changeset
    25
#ifndef SHARE_PRIMS_JVMTIEVENTCONTROLLER_HPP
9807daeb47c4 8216167: Update include guards to reflect correct directories
coleenp
parents: 49364
diff changeset
    26
#define SHARE_PRIMS_JVMTIEVENTCONTROLLER_HPP
7397
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 "utilities/globalDefinitions.hpp"
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    31
489c9b5090e2 Initial load
duke
parents:
diff changeset
    32
// forward declaration
489c9b5090e2 Initial load
duke
parents:
diff changeset
    33
class JvmtiEventControllerPrivate;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    34
class JvmtiEventController;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    35
class JvmtiEnvThreadState;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    36
class JvmtiFramePop;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    37
class JvmtiEnvBase;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    38
489c9b5090e2 Initial load
duke
parents:
diff changeset
    39
489c9b5090e2 Initial load
duke
parents:
diff changeset
    40
// Extension event support
489c9b5090e2 Initial load
duke
parents:
diff changeset
    41
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
    42
// jvmtiExtEvent is the extensions equivalent of jvmtiEvent
489c9b5090e2 Initial load
duke
parents:
diff changeset
    43
// jvmtiExtCallbacks is the extensions equivalent of jvmtiEventCallbacks
489c9b5090e2 Initial load
duke
parents:
diff changeset
    44
489c9b5090e2 Initial load
duke
parents:
diff changeset
    45
// Extension events start JVMTI_MIN_EVENT_TYPE_VAL-1 and work towards 0.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    46
typedef enum {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    47
  EXT_EVENT_CLASS_UNLOAD = JVMTI_MIN_EVENT_TYPE_VAL-1,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    48
  EXT_MIN_EVENT_TYPE_VAL = EXT_EVENT_CLASS_UNLOAD,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    49
  EXT_MAX_EVENT_TYPE_VAL = EXT_EVENT_CLASS_UNLOAD
489c9b5090e2 Initial load
duke
parents:
diff changeset
    50
} jvmtiExtEvent;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    51
489c9b5090e2 Initial load
duke
parents:
diff changeset
    52
typedef struct {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    53
  jvmtiExtensionEvent ClassUnload;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    54
} jvmtiExtEventCallbacks;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    55
489c9b5090e2 Initial load
duke
parents:
diff changeset
    56
489c9b5090e2 Initial load
duke
parents:
diff changeset
    57
// The complete range of events is EXT_MIN_EVENT_TYPE_VAL to
489c9b5090e2 Initial load
duke
parents:
diff changeset
    58
// JVMTI_MAX_EVENT_TYPE_VAL (inclusive and contiguous).
489c9b5090e2 Initial load
duke
parents:
diff changeset
    59
const int TOTAL_MIN_EVENT_TYPE_VAL = EXT_MIN_EVENT_TYPE_VAL;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    60
const int TOTAL_MAX_EVENT_TYPE_VAL = JVMTI_MAX_EVENT_TYPE_VAL;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    61
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
// JvmtiEventEnabled
489c9b5090e2 Initial load
duke
parents:
diff changeset
    66
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
    67
// Utility class
489c9b5090e2 Initial load
duke
parents:
diff changeset
    68
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
    69
// A boolean array indexed by event_type, used as an internal
489c9b5090e2 Initial load
duke
parents:
diff changeset
    70
// data structure to track what JVMTI event types are enabled.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    71
// Used for user set enabling and disabling (globally and on a
489c9b5090e2 Initial load
duke
parents:
diff changeset
    72
// per thread basis), and for computed merges across environments,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    73
// threads and the VM as a whole.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    74
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
    75
// for inlines see jvmtiEventController_inline.hpp
489c9b5090e2 Initial load
duke
parents:
diff changeset
    76
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
    77
49364
601146c66cad 8173070: Remove ValueObj class for allocation subclassing for runtime code
coleenp
parents: 48157
diff changeset
    78
class JvmtiEventEnabled {
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    79
private:
489c9b5090e2 Initial load
duke
parents:
diff changeset
    80
  friend class JvmtiEventControllerPrivate;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    81
  jlong _enabled_bits;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    82
#ifndef PRODUCT
489c9b5090e2 Initial load
duke
parents:
diff changeset
    83
  enum {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    84
    JEE_INIT_GUARD = 0xEAD0
489c9b5090e2 Initial load
duke
parents:
diff changeset
    85
  } _init_guard;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    86
#endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
    87
  static jlong bit_for(jvmtiEvent event_type);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    88
  jlong get_bits();
489c9b5090e2 Initial load
duke
parents:
diff changeset
    89
  void set_bits(jlong bits);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    90
public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
    91
  JvmtiEventEnabled();
489c9b5090e2 Initial load
duke
parents:
diff changeset
    92
  void clear();
489c9b5090e2 Initial load
duke
parents:
diff changeset
    93
  bool is_enabled(jvmtiEvent event_type);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    94
  void set_enabled(jvmtiEvent event_type, bool enabled);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    95
};
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
// JvmtiEnvThreadEventEnable
489c9b5090e2 Initial load
duke
parents:
diff changeset
   101
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
   102
// JvmtiEventController data specific to a particular environment and thread.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   103
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
   104
// for inlines see jvmtiEventController_inline.hpp
489c9b5090e2 Initial load
duke
parents:
diff changeset
   105
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
   106
49364
601146c66cad 8173070: Remove ValueObj class for allocation subclassing for runtime code
coleenp
parents: 48157
diff changeset
   107
class JvmtiEnvThreadEventEnable {
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   108
private:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   109
  friend class JvmtiEventControllerPrivate;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   110
  JvmtiEventEnabled _event_user_enabled;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   111
  JvmtiEventEnabled _event_enabled;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   112
489c9b5090e2 Initial load
duke
parents:
diff changeset
   113
public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   114
  JvmtiEnvThreadEventEnable();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   115
  ~JvmtiEnvThreadEventEnable();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   116
  bool is_enabled(jvmtiEvent event_type);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   117
  void set_user_enabled(jvmtiEvent event_type, bool enabled);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   118
};
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
// JvmtiThreadEventEnable
489c9b5090e2 Initial load
duke
parents:
diff changeset
   124
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
   125
// JvmtiEventController data specific to a particular thread.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   126
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
   127
// for inlines see jvmtiEventController_inline.hpp
489c9b5090e2 Initial load
duke
parents:
diff changeset
   128
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
   129
49364
601146c66cad 8173070: Remove ValueObj class for allocation subclassing for runtime code
coleenp
parents: 48157
diff changeset
   130
class JvmtiThreadEventEnable {
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   131
private:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   132
  friend class JvmtiEventControllerPrivate;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   133
  JvmtiEventEnabled _event_enabled;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   134
489c9b5090e2 Initial load
duke
parents:
diff changeset
   135
public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   136
  JvmtiThreadEventEnable();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   137
  ~JvmtiThreadEventEnable();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   138
  bool is_enabled(jvmtiEvent event_type);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   139
};
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
// JvmtiEnvEventEnable
489c9b5090e2 Initial load
duke
parents:
diff changeset
   145
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
   146
// JvmtiEventController data specific to a particular environment.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   147
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
   148
// for inlines see jvmtiEventController_inline.hpp
489c9b5090e2 Initial load
duke
parents:
diff changeset
   149
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
   150
49364
601146c66cad 8173070: Remove ValueObj class for allocation subclassing for runtime code
coleenp
parents: 48157
diff changeset
   151
class JvmtiEnvEventEnable {
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   152
private:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   153
  friend class JvmtiEventControllerPrivate;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   154
489c9b5090e2 Initial load
duke
parents:
diff changeset
   155
  // user set global event enablement indexed by jvmtiEvent
489c9b5090e2 Initial load
duke
parents:
diff changeset
   156
  JvmtiEventEnabled _event_user_enabled;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   157
489c9b5090e2 Initial load
duke
parents:
diff changeset
   158
  // this flag indicates the presence (true) or absence (false) of event callbacks
489c9b5090e2 Initial load
duke
parents:
diff changeset
   159
  // it is indexed by jvmtiEvent
489c9b5090e2 Initial load
duke
parents:
diff changeset
   160
  JvmtiEventEnabled _event_callback_enabled;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   161
489c9b5090e2 Initial load
duke
parents:
diff changeset
   162
  // indexed by jvmtiEvent true if enabled globally or on any thread.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   163
  // True only if there is a callback for it.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   164
  JvmtiEventEnabled _event_enabled;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   165
489c9b5090e2 Initial load
duke
parents:
diff changeset
   166
public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   167
  JvmtiEnvEventEnable();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   168
  ~JvmtiEnvEventEnable();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   169
  bool is_enabled(jvmtiEvent event_type);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   170
  void set_user_enabled(jvmtiEvent event_type, bool enabled);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   171
};
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
// JvmtiEventController
489c9b5090e2 Initial load
duke
parents:
diff changeset
   177
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
   178
// The class is the access point for all actions that change
489c9b5090e2 Initial load
duke
parents:
diff changeset
   179
// which events are active, this include:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   180
//      enabling and disabling events
489c9b5090e2 Initial load
duke
parents:
diff changeset
   181
//      changing the callbacks/eventhook (they may be null)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   182
//      setting and clearing field watchpoints
489c9b5090e2 Initial load
duke
parents:
diff changeset
   183
//      setting frame pops
489c9b5090e2 Initial load
duke
parents:
diff changeset
   184
//      encountering frame pops
489c9b5090e2 Initial load
duke
parents:
diff changeset
   185
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
   186
// for inlines see jvmtiEventController_inline.hpp
489c9b5090e2 Initial load
duke
parents:
diff changeset
   187
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
   188
489c9b5090e2 Initial load
duke
parents:
diff changeset
   189
class JvmtiEventController : AllStatic {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   190
private:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   191
  friend class JvmtiEventControllerPrivate;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   192
489c9b5090e2 Initial load
duke
parents:
diff changeset
   193
  // for all environments, global array indexed by jvmtiEvent
489c9b5090e2 Initial load
duke
parents:
diff changeset
   194
  static JvmtiEventEnabled _universal_global_event_enabled;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   195
489c9b5090e2 Initial load
duke
parents:
diff changeset
   196
public:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   197
  static bool is_enabled(jvmtiEvent event_type);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   198
489c9b5090e2 Initial load
duke
parents:
diff changeset
   199
  // events that can ONLY be enabled/disabled globally (can't toggle on individual threads).
489c9b5090e2 Initial load
duke
parents:
diff changeset
   200
  static bool is_global_event(jvmtiEvent event_type);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   201
489c9b5090e2 Initial load
duke
parents:
diff changeset
   202
  // is the event_type valid?
489c9b5090e2 Initial load
duke
parents:
diff changeset
   203
  // to do: check against valid event array
489c9b5090e2 Initial load
duke
parents:
diff changeset
   204
  static bool is_valid_event_type(jvmtiEvent event_type) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   205
    return ((int)event_type >= TOTAL_MIN_EVENT_TYPE_VAL)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   206
        && ((int)event_type <= TOTAL_MAX_EVENT_TYPE_VAL);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   207
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   208
489c9b5090e2 Initial load
duke
parents:
diff changeset
   209
  // Use (thread == NULL) to enable/disable an event globally.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   210
  // Use (thread != NULL) to enable/disable an event for a particular thread.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   211
  // thread is ignored for events that can only be specified globally
489c9b5090e2 Initial load
duke
parents:
diff changeset
   212
  static void set_user_enabled(JvmtiEnvBase *env, JavaThread *thread,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   213
                               jvmtiEvent event_type, bool enabled);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   214
489c9b5090e2 Initial load
duke
parents:
diff changeset
   215
  // Setting callbacks changes computed enablement and must be done
489c9b5090e2 Initial load
duke
parents:
diff changeset
   216
  // at a safepoint otherwise a NULL callback could be attempted
489c9b5090e2 Initial load
duke
parents:
diff changeset
   217
  static void set_event_callbacks(JvmtiEnvBase *env,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   218
                                  const jvmtiEventCallbacks* callbacks,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   219
                                  jint size_of_callbacks);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   220
489c9b5090e2 Initial load
duke
parents:
diff changeset
   221
  // Sets the callback function for a single extension event and enables
489c9b5090e2 Initial load
duke
parents:
diff changeset
   222
  // (or disables it).
489c9b5090e2 Initial load
duke
parents:
diff changeset
   223
  static void set_extension_event_callback(JvmtiEnvBase* env,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   224
                                           jint extension_event_index,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   225
                                           jvmtiExtensionEvent callback);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   226
489c9b5090e2 Initial load
duke
parents:
diff changeset
   227
  static void set_frame_pop(JvmtiEnvThreadState *env_thread, JvmtiFramePop fpop);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   228
  static void clear_frame_pop(JvmtiEnvThreadState *env_thread, JvmtiFramePop fpop);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   229
  static void clear_to_frame_pop(JvmtiEnvThreadState *env_thread, JvmtiFramePop fpop);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   230
489c9b5090e2 Initial load
duke
parents:
diff changeset
   231
  static void change_field_watch(jvmtiEvent event_type, bool added);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   232
489c9b5090e2 Initial load
duke
parents:
diff changeset
   233
  static void thread_started(JavaThread *thread);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   234
  static void thread_ended(JavaThread *thread);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   235
489c9b5090e2 Initial load
duke
parents:
diff changeset
   236
  static void env_initialize(JvmtiEnvBase *env);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   237
  static void env_dispose(JvmtiEnvBase *env);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   238
489c9b5090e2 Initial load
duke
parents:
diff changeset
   239
  static void vm_start();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   240
  static void vm_init();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   241
  static void vm_death();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   242
};
489c9b5090e2 Initial load
duke
parents:
diff changeset
   243
53244
9807daeb47c4 8216167: Update include guards to reflect correct directories
coleenp
parents: 49364
diff changeset
   244
#endif // SHARE_PRIMS_JVMTIEVENTCONTROLLER_HPP