[vmkit-commits] [vmkit] r102953 - /vmkit/trunk/lib/J3/VMCore/JavaClass.cpp

Nicolas Geoffray nicolas.geoffray at lip6.fr
Mon May 3 14:03:54 PDT 2010


Author: geoffray
Date: Mon May  3 16:03:53 2010
New Revision: 102953

URL: http://llvm.org/viewvc/llvm-project?rev=102953&view=rev
Log:
Always include the VT in the secondary array if the depth of the class is more than the display length.


Modified:
    vmkit/trunk/lib/J3/VMCore/JavaClass.cpp

Modified: vmkit/trunk/lib/J3/VMCore/JavaClass.cpp
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/lib/J3/VMCore/JavaClass.cpp?rev=102953&r1=102952&r2=102953&view=diff
==============================================================================
--- vmkit/trunk/lib/J3/VMCore/JavaClass.cpp (original)
+++ vmkit/trunk/lib/J3/VMCore/JavaClass.cpp Mon May  3 16:03:53 2010
@@ -1475,12 +1475,8 @@
       offset = getCacheIndex() + depth + 1;
     } else {
       offset = getCacheIndex();
-      // Add the super in the list of secondary types only if it is
-      // out of depth.
-      if (depth > getDisplayLength()) {
-        ++nbSecondaryTypes;
-        outOfDepth = 1;
-      }
+      ++nbSecondaryTypes;
+      outOfDepth = 1;
     }
 
     mvm::BumpPtrAllocator& allocator = C->classLoader->allocator;





More information about the vmkit-commits mailing list