[vmkit-commits] [vmkit] r180483 - Enclosed Jnjvm::scanStaleReferences inside Incincerator #ifdef.

Peter Senna Tschudin peter.senna at gmail.com
Thu Apr 25 10:16:51 PDT 2013


Author: peter.senna
Date: Thu Apr 25 12:15:17 2013
New Revision: 180483

URL: http://llvm.org/viewvc/llvm-project?rev=180483&view=rev
Log:
Enclosed Jnjvm::scanStaleReferences inside Incincerator #ifdef.
(cherry picked from commit a56cf97a97e3e51682d32553c66939a9ecd731cc)

Modified:
    vmkit/trunk/lib/j3/VMCore/Jnjvm.cpp

Modified: vmkit/trunk/lib/j3/VMCore/Jnjvm.cpp
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/lib/j3/VMCore/Jnjvm.cpp?rev=180483&r1=180482&r2=180483&view=diff
==============================================================================
--- vmkit/trunk/lib/j3/VMCore/Jnjvm.cpp (original)
+++ vmkit/trunk/lib/j3/VMCore/Jnjvm.cpp Thu Apr 25 12:15:17 2013
@@ -1325,7 +1325,11 @@ void Jnjvm::runApplication(int argc, cha
 Jnjvm::Jnjvm(vmkit::BumpPtrAllocator& Alloc,
              vmkit::CompiledFrames** frames,
              JnjvmBootstrapLoader* loader) : 
-  VirtualMachine(Alloc, frames), lockSystem(Alloc), scanStaleReferences(false) {
+  VirtualMachine(Alloc, frames), lockSystem(Alloc)
+#if RESET_STALE_REFERENCES
+	, scanStaleReferences(false)
+#endif
+{
 
   classpath = getenv("CLASSPATH");
   if (classpath == NULL) classpath = ".";
@@ -1372,8 +1376,12 @@ void Jnjvm::startCollection() {
   
 void Jnjvm::endCollectionBeforeUnlockingWorld()
 {
+#if RESET_STALE_REFERENCES
+
 	// Stale references can no more exist, until a bundle is uninstalled later.
 	scanStaleReferences = false;
+
+#endif
 }
 
 void Jnjvm::endCollection() {





More information about the vmkit-commits mailing list