[vmkit-commits] [vmkit] r94305 - in /vmkit/trunk: include/mvm/Threads/Locks.h lib/J3/VMCore/JavaLocks.h
Nicolas Geoffray
nicolas.geoffray at lip6.fr
Sat Jan 23 02:02:52 PST 2010
Author: geoffray
Date: Sat Jan 23 04:02:52 2010
New Revision: 94305
URL: http://llvm.org/viewvc/llvm-project?rev=94305&view=rev
Log:
Make room for a 10-bit hashcode.
Modified:
vmkit/trunk/include/mvm/Threads/Locks.h
vmkit/trunk/lib/J3/VMCore/JavaLocks.h
Modified: vmkit/trunk/include/mvm/Threads/Locks.h
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/include/mvm/Threads/Locks.h?rev=94305&r1=94304&r2=94305&view=diff
==============================================================================
--- vmkit/trunk/include/mvm/Threads/Locks.h (original)
+++ vmkit/trunk/include/mvm/Threads/Locks.h Sat Jan 23 04:02:52 2010
@@ -186,7 +186,7 @@
static const uint64_t ThinCountMask = 0xFF000;
static const uint64_t ThinCountShift = 12;
static const uint64_t ThinCountAdd = 0x1000;
- static const uint64_t GCMask = 0x3;
+ static const uint64_t GCMask = 0xFFF;
Modified: vmkit/trunk/lib/J3/VMCore/JavaLocks.h
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/lib/J3/VMCore/JavaLocks.h?rev=94305&r1=94304&r2=94305&view=diff
==============================================================================
--- vmkit/trunk/lib/J3/VMCore/JavaLocks.h (original)
+++ vmkit/trunk/lib/J3/VMCore/JavaLocks.h Sat Jan 23 04:02:52 2010
@@ -125,7 +125,7 @@
static const uint32_t IndexSize = 1 << BitIndex;
static const uint32_t BitMask = IndexSize - 1;
static const uint32_t MaxLocks = GlobalSize * IndexSize;
- static const uint32_t BitGC = 2;
+ static const uint32_t BitGC = 12;
/// LockTable - The global table that will hold the locks. The table is
/// a two-dimensional array, and only one entry is created, so that
More information about the vmkit-commits
mailing list