[llvm-commits] [vmkit] r50414 - /vmkit/trunk/lib/JnJVM/Classpath/ClasspathVMObject.cpp
Nicolas Geoffray
nicolas.geoffray at lip6.fr
Tue Apr 29 02:49:03 PDT 2008
Author: geoffray
Date: Tue Apr 29 04:48:58 2008
New Revision: 50414
URL: http://llvm.org/viewvc/llvm-project?rev=50414&view=rev
Log:
When cloning, allocate the object with the current isolate.
Modified:
vmkit/trunk/lib/JnJVM/Classpath/ClasspathVMObject.cpp
Modified: vmkit/trunk/lib/JnJVM/Classpath/ClasspathVMObject.cpp
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/lib/JnJVM/Classpath/ClasspathVMObject.cpp?rev=50414&r1=50413&r2=50414&view=diff
==============================================================================
--- vmkit/trunk/lib/JnJVM/Classpath/ClasspathVMObject.cpp (original)
+++ vmkit/trunk/lib/JnJVM/Classpath/ClasspathVMObject.cpp Tue Apr 29 04:48:58 2008
@@ -35,7 +35,7 @@
JavaObject* src = (JavaObject*)_src;
uint64 size = src->objectSize() + 4; // + VT
JavaObject* res = (JavaObject*)
- gc::operator new(size, src->getVirtualTable());
+ JavaThread::get()->isolate->allocateObject(size, src->getVirtualTable());
memcpy(res, src, size);
return (jobject)res;
}
More information about the llvm-commits
mailing list