summaryrefslogtreecommitdiffstats
path: root/libjava/include
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/include')
-rw-r--r--libjava/include/config.h.in6
-rw-r--r--libjava/include/jvm.h11
2 files changed, 17 insertions, 0 deletions
diff --git a/libjava/include/config.h.in b/libjava/include/config.h.in
index 42740c4a17e..10b74af151d 100644
--- a/libjava/include/config.h.in
+++ b/libjava/include/config.h.in
@@ -152,6 +152,12 @@
/* Define if g++ has a bug preventing us from inlining math routines. */
#undef __NO_MATH_INLINES
+/* Define if you are using JVMPI. */
+#undef ENABLE_JVMPI
+
+/* The number of bytes in a void *. */
+#undef SIZEOF_VOID_P
+
/* Define if you have the access function. */
#undef HAVE_ACCESS
diff --git a/libjava/include/jvm.h b/libjava/include/jvm.h
index 32336db9077..19b03fbc9c6 100644
--- a/libjava/include/jvm.h
+++ b/libjava/include/jvm.h
@@ -82,6 +82,9 @@ void _Jv_RunFinalizers (void);
void _Jv_RunAllFinalizers (void);
/* Perform a GC. */
void _Jv_RunGC (void);
+/* Disable and enable GC. */
+void _Jv_DisableGC (void);
+void _Jv_EnableGC (void);
/* Return approximation of total size of heap. */
long _Jv_GCTotalMemory (void);
@@ -216,4 +219,12 @@ void _Jv_SetCurrentJNIEnv (_Jv_JNIEnv *);
struct _Jv_JavaVM;
_Jv_JavaVM *_Jv_GetJavaVM ();
+#ifdef ENABLE_JVMPI
+#include "jvmpi.h"
+
+extern void (*_Jv_JVMPI_Notify_OBJECT_ALLOC) (JVMPI_Event *event);
+extern void (*_Jv_JVMPI_Notify_THREAD_START) (JVMPI_Event *event);
+extern void (*_Jv_JVMPI_Notify_THREAD_END) (JVMPI_Event *event);
+#endif
+
#endif /* __JAVA_JVM_H__ */
OpenPOWER on IntegriCloud