diff options
author | Anthony Green <green@redhat.com> | 2000-04-02 15:34:17 +0000 |
---|---|---|
committer | Anthony Green <green@gcc.gnu.org> | 2000-04-02 15:34:17 +0000 |
commit | 54c2f04ba05ce07e701345bc66d038b7d47a9bed (patch) | |
tree | 199d2b90d14943e4a167f1af547706f43926aeb3 /libjava/include | |
parent | 49d1b8712898e27fde111afc2310e0d43768e8d7 (diff) | |
download | gcc-54c2f04ba05ce07e701345bc66d038b7d47a9bed.zip gcc-54c2f04ba05ce07e701345bc66d038b7d47a9bed.tar.gz gcc-54c2f04ba05ce07e701345bc66d038b7d47a9bed.tar.bz2 |
JVMPI changes...
Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com>
* configure: Rebuilt.
* configure.in: Add --disable-jvmpi.
* include/config.h.in: Rebuilt.
* acconfig.h: Add ENABLE_JVMPI.
* include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC.
(_Jv_JVMPI_Notify_OBJECT_ALLOC): New define.
(_Jv_JVMPI_Notify_THREAD_END): New define.
(_Jv_JVMPI_Notify_THREAD_END): New define.
* prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare.
(_Jv_JVMPI_Notify_THREAD_END): Declare.
(_Jv_JVMPI_Notify_THREAD_END): Declare.
* prims.cc (_Jv_AllocObject): Generate JVMPI object allocation
events.
* java/lang/natThread.cc: Include JVMPI headers if necessary.
(finish_): Generate JVMPI thread end events.
(run_): Generate JVMPI thread start events.
* gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any
preloaded JNI library.
Include JVMPI headers if necessary.
(run): Generate JVMPI thread start events.
* boehm.cc: Define GC_disable and GC_enable.
(_Jv_DisableGC): New function.
(_Jv_EnableGC): New function.
(disable_gc_mutex): Declare.
* nogc.cc (_Jv_DisableGC): New function.
(_Jv_EnableGC): New function.
* jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests.
(_Jv_JVMPI_Interface): Define.
(jvmpiEnableEvent): New function.
(_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface.
* include/jvmpi.h: New file.
From-SVN: r32866
Diffstat (limited to 'libjava/include')
-rw-r--r-- | libjava/include/config.h.in | 6 | ||||
-rw-r--r-- | libjava/include/jvm.h | 11 |
2 files changed, 17 insertions, 0 deletions
diff --git a/libjava/include/config.h.in b/libjava/include/config.h.in index 42740c4..10b74af 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 32336db..19b03fb 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__ */ |