diff options
author | Keith Seitz <keiths@redhat.com> | 2006-07-20 22:20:09 +0000 |
---|---|---|
committer | Keith Seitz <kseitz@gcc.gnu.org> | 2006-07-20 22:20:09 +0000 |
commit | 326d5132e4ac6bea1b33dec95b3361faac184c71 (patch) | |
tree | a3790edafb88eccddf2af000fb79bd2553e927d1 /libjava/jvmti.cc | |
parent | 94f473ee2c02f0e21e3c328169424bbfd491e893 (diff) | |
download | gcc-326d5132e4ac6bea1b33dec95b3361faac184c71.zip gcc-326d5132e4ac6bea1b33dec95b3361faac184c71.tar.gz gcc-326d5132e4ac6bea1b33dec95b3361faac184c71.tar.bz2 |
jvmti.cc (_Jv_JVMTI_DisposeEnvironment): New function.
* jvmti.cc (_Jv_JVMTI_DisposeEnvironment): New function.
(_Jv_JVMTI_Interface): Define DisposeEnvironment method.
From-SVN: r115631
Diffstat (limited to 'libjava/jvmti.cc')
-rw-r--r-- | libjava/jvmti.cc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/libjava/jvmti.cc b/libjava/jvmti.cc index 8bebef8..16a28f1 100644 --- a/libjava/jvmti.cc +++ b/libjava/jvmti.cc @@ -16,6 +16,14 @@ details. */ #define RESERVED NULL #define UNIMPLEMENTED NULL +static jvmtiError +_Jv_JVMTI_DisposeEnvironment (jvmtiEnv *env) +{ + // All we need to do is free memory allocated by _Jv_GetJVMTIEnv + _Jv_Free (env); + return JVMTI_ERROR_NONE; +} + struct _Jv_jvmtiEnv _Jv_JVMTI_Interface = { RESERVED, // reserved1 @@ -144,7 +152,7 @@ struct _Jv_jvmtiEnv _Jv_JVMTI_Interface = UNIMPLEMENTED, // GetExtensionFunctions UNIMPLEMENTED, // GetExtensionEvents UNIMPLEMENTED, // SetExtensionEventCallback - UNIMPLEMENTED, // DisposeEnvironment + _Jv_JVMTI_DisposeEnvironment, // DisposeEnvironment UNIMPLEMENTED, // GetErrorName UNIMPLEMENTED, // GetJLocationFormat UNIMPLEMENTED, // GetSystemProperties |