[vmkit-commits] [vmkit] r61807 - /vmkit/trunk/lib/JnJVM/VMCore/JnjvmModule.cpp

Nicolas Geoffray nicolas.geoffray at lip6.fr
Tue Jan 6 04:10:46 PST 2009


Author: geoffray
Date: Tue Jan  6 06:10:19 2009
New Revision: 61807

URL: http://llvm.org/viewvc/llvm-project?rev=61807&view=rev
Log:
Set the initialization state to ready if the class does not need an
initialization check, or resolved if it needs one.


Modified:
    vmkit/trunk/lib/JnJVM/VMCore/JnjvmModule.cpp

Modified: vmkit/trunk/lib/JnJVM/VMCore/JnjvmModule.cpp
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/lib/JnJVM/VMCore/JnjvmModule.cpp?rev=61807&r1=61806&r2=61807&view=diff

==============================================================================
--- vmkit/trunk/lib/JnJVM/VMCore/JnjvmModule.cpp (original)
+++ vmkit/trunk/lib/JnJVM/VMCore/JnjvmModule.cpp Tue Jan  6 06:10:19 2009
@@ -924,8 +924,9 @@
   
   const StructType* TCMTy = dyn_cast<StructType>(ATy->getContainedType(0));
   assert(TCMTy && "Malformed type");
-                       
-  TempElts.push_back(ConstantInt::get(Type::Int32Ty, ready)); 
+
+  uint32 status = cl->needsInitialisationCheck() ? resolved : ready;
+  TempElts.push_back(ConstantInt::get(Type::Int32Ty, status));
   TempElts.push_back(getStaticInstance(cl));
   Constant* CStr[1] = { ConstantStruct::get(TCMTy, TempElts) };
   TempElts.clear();





More information about the vmkit-commits mailing list