[llvm-commits] [vmkit] r52395 - in /vmkit/trunk/lib/JnJVM/VMCore: JavaObject.cpp JavaObject.h
Nicolas Geoffray
nicolas.geoffray at lip6.fr
Tue Jun 17 03:11:39 PDT 2008
Author: geoffray
Date: Tue Jun 17 05:11:39 2008
New Revision: 52395
URL: http://llvm.org/viewvc/llvm-project?rev=52395&view=rev
Log:
A default JavaObject does not have a destructor.
Modified:
vmkit/trunk/lib/JnJVM/VMCore/JavaObject.cpp
vmkit/trunk/lib/JnJVM/VMCore/JavaObject.h
Modified: vmkit/trunk/lib/JnJVM/VMCore/JavaObject.cpp
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/lib/JnJVM/VMCore/JavaObject.cpp?rev=52395&r1=52394&r2=52395&view=diff
==============================================================================
--- vmkit/trunk/lib/JnJVM/VMCore/JavaObject.cpp (original)
+++ vmkit/trunk/lib/JnJVM/VMCore/JavaObject.cpp Tue Jun 17 05:11:39 2008
@@ -252,9 +252,3 @@
varcond = 0;
lock = 0;
}
-
-#ifdef USE_GC_BOEHM
-JavaObject::~JavaObject() {
- if (lockObj()) delete lockObj();
-}
-#endif
Modified: vmkit/trunk/lib/JnJVM/VMCore/JavaObject.h
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/lib/JnJVM/VMCore/JavaObject.h?rev=52395&r1=52394&r2=52395&view=diff
==============================================================================
--- vmkit/trunk/lib/JnJVM/VMCore/JavaObject.h (original)
+++ vmkit/trunk/lib/JnJVM/VMCore/JavaObject.h Tue Jun 17 05:11:39 2008
@@ -206,13 +206,6 @@
virtual void print(mvm::PrintBuffer* buf) const;
virtual void TRACER;
-#ifdef USE_GC_BOEHM
- ~JavaObject();
- JavaObject() {
- lockObj = 0;
- }
-#endif
-
LockObj* lockObj() {
if (lock & 0x80000000) {
return (LockObj*)(lock << 1);
More information about the llvm-commits
mailing list