[llvm-commits] [vmkit] r52413 - in /vmkit/trunk/lib/JnJVM/VMCore: JavaArray.cpp JavaArray.h
Nicolas Geoffray
nicolas.geoffray at lip6.fr
Tue Jun 17 09:34:17 PDT 2008
Author: geoffray
Date: Tue Jun 17 11:34:17 2008
New Revision: 52413
URL: http://llvm.org/viewvc/llvm-project?rev=52413&view=rev
Log:
Custom deallocation of UTF8.
Modified:
vmkit/trunk/lib/JnJVM/VMCore/JavaArray.cpp
vmkit/trunk/lib/JnJVM/VMCore/JavaArray.h
Modified: vmkit/trunk/lib/JnJVM/VMCore/JavaArray.cpp
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/lib/JnJVM/VMCore/JavaArray.cpp?rev=52413&r1=52412&r2=52413&view=diff
==============================================================================
--- vmkit/trunk/lib/JnJVM/VMCore/JavaArray.cpp (original)
+++ vmkit/trunk/lib/JnJVM/VMCore/JavaArray.cpp Tue Jun 17 11:34:17 2008
@@ -154,6 +154,10 @@
return malloc(sz + size * sizeof(uint16));
}
+void UTF8::operator delete(void* obj) {
+ free(obj);
+}
+
const UTF8* UTF8::acons(sint32 n, ClassArray* cl, Jnjvm* vm) {
if (n < 0)
negativeArraySizeException(n);
Modified: vmkit/trunk/lib/JnJVM/VMCore/JavaArray.h
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/lib/JnJVM/VMCore/JavaArray.h?rev=52413&r1=52412&r2=52413&view=diff
==============================================================================
--- vmkit/trunk/lib/JnJVM/VMCore/JavaArray.h (original)
+++ vmkit/trunk/lib/JnJVM/VMCore/JavaArray.h Tue Jun 17 11:34:17 2008
@@ -114,6 +114,7 @@
virtual void print(mvm::PrintBuffer* buf) const;
void* operator new(size_t sz, sint32 size);
+ void operator delete(void* obj);
};
} // end namespace jnjvm
More information about the llvm-commits
mailing list