[RFA/JVMTI] _Jv_Malloc cleanup
Keith Seitz
keiths@redhat.com
Wed Sep 20 23:58:00 GMT 2006
Hi,
Earlier Tom mentioned something about the _Jv_Malloc mess in jvmti.cc.
This patch changes all the calls to _Jv_Malloc to use
_Jv_MallocUnchecked and returns JVMTI_ERROR_OUT_OF_MEMORY when the
malloc fails.
Okay?
Keith
ChangeLog
2006-09-20 Keith Seitz <keiths@redhat.com>
* jvmti.cc (_Jv_JVMTI_CreateRawMonitor): Use _Jv_MallocUnchked
and return JVMTI_ERROR_OUT_OF_MEMORY if necessary.
(_Jv_JVMTI_GetClassMethods): Likewise.
(_Jv_JVMTI_GetClassLoaderClasses): Likewise.
(_Jv_JVMTI_GetJNIFunctionTable): Likewise.
(_Jv_JVMTI_GetSystemProperty): Likewise.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jvmti-mallocunchecked.patch
Type: text/x-patch
Size: 2311 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20060920/66065a5d/attachment.bin>
More information about the Java-patches
mailing list