OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [include/] [jvmti-int.h] - Blame information for rev 757

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 757 jeremybenn
/* jvmti-int.h -- Internal JVMTI definitions
2
   Copyright (C) 2006, 2007 Free Software Foundation, Inc.
3
 
4
This file is part of GNU Classpath.
5
 
6
GNU Classpath is free software; you can redistribute it and/or modify
7
it under the terms of the GNU General Public License as published by
8
the Free Software Foundation; either version 2, or (at your option)
9
any later version.
10
 
11
GNU Classpath is distributed in the hope that it will be useful, but
12
WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14
General Public License for more details.
15
 
16
You should have received a copy of the GNU General Public License
17
along with GNU Classpath; see the file COPYING.  If not, write to the
18
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19
02110-1301 USA.
20
 
21
As a special exception, if you link this library with other files to
22
produce an executable, this library does not by itself cause the
23
resulting executable to be covered by the GNU General Public License.
24
This exception does not however invalidate any other reasons why the
25
executable file might be covered by the GNU General Public License. */
26
 
27
#ifndef __GCJ_JVTMI_INT_H__
28
#define __GCJ_JVMTI_INT_H__
29
 
30
/* A macro to map jvmtiEvent to an index in thread[] and enabled[]
31
   in the jvmtiEnv. This will only work if the order of events listed
32
   in jvmtiEvent and jvmtiEventCallbacks is kept the same (which should
33
   not be a problem). */
34
#define EVENT_INDEX(jvmtievent) (int)(jvmtievent - JVMTI_EVENT_VM_INIT)
35
 
36
/* A few globals to help limit the impact of JVMTI on normal operations.
37
   False means no JVMTI environment requested that event type. */
38
namespace JVMTI
39
{
40
  // Is JVMTI enabled? (i.e., any jvmtiEnv created?)
41
  extern bool enabled;
42
 
43
  // Event notifications
44
  extern bool VMInit;
45
  extern bool VMDeath;
46
  extern bool ThreadStart;
47
  extern bool ThreadEnd;
48
  extern bool ClassFileLoadHook;
49
  extern bool ClassLoad;
50
  extern bool ClassPrepare;
51
  extern bool VMStart;
52
  extern bool Exception;
53
  extern bool ExceptionCatch;
54
  extern bool SingleStep;
55
  extern bool FramePop;
56
  extern bool Breakpoint;
57
  extern bool FieldAccess;
58
  extern bool FieldModification;
59
  extern bool MethodEntry;
60
  extern bool MethodExit;
61
  extern bool NativeMethodBind;
62
  extern bool CompiledMethodLoad;
63
  extern bool CompiledMethodUnload;
64
  extern bool DynamicCodeGenerated;
65
  extern bool DataDumpRequest;
66
  extern bool reserved72;
67
  extern bool MonitorWait;
68
  extern bool MonitorWaited;
69
  extern bool MonitorContendedEnter;
70
  extern bool MonitorContendedEntered;
71
  extern bool reserved77;
72
  extern bool reserved78;
73
  extern bool reserved79;
74
  extern bool reserved80;
75
  extern bool GarbageCollectionStart;
76
  extern bool GarbageCollectionFinish;
77
  extern bool ObjectFree;
78
  extern bool VMObjectAlloc;
79
};
80
 
81
/* A macro to test whether an event should be posted to JVMTI.*/
82
#define JVMTI_REQUESTED_EVENT(Event) __builtin_expect (JVMTI::Event, false)
83
 
84
/* Post the event to requesting JVMTI environments.
85
 
86
   For speed, this function should only be called after
87
   JVMTI_REQUESTED_EVENT is checked. */
88
extern void _Jv_JVMTI_PostEvent (jvmtiEvent type, jthread event_thread,                          ...);
89
// Returns the jvmtiEnv used by the JDWP backend
90
extern jvmtiEnv *_Jv_GetJDWP_JVMTIEnv (void);
91
 
92
// Reports JVMTI excpetions
93
extern void _Jv_ReportJVMTIExceptionThrow (jthrowable);
94
#endif /* __GCJ_JVMTI_INT_H__ */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.