[vmkit-commits] [vmkit] r120615 - in /vmkit/branches/multi-vm: include/mvm/GC.h lib/Mvm/GCMmap2/MvmGC.h lib/Mvm/MMTk/MvmGC.h
Gael Thomas
gael.thomas at lip6.fr
Wed Dec 1 14:22:45 PST 2010
Author: gthomas
Date: Wed Dec 1 16:22:45 2010
New Revision: 120615
URL: http://llvm.org/viewvc/llvm-project?rev=120615&view=rev
Log:
the size of CommonVirtualTable is defined by a function
Modified:
vmkit/branches/multi-vm/include/mvm/GC.h
vmkit/branches/multi-vm/lib/Mvm/GCMmap2/MvmGC.h
vmkit/branches/multi-vm/lib/Mvm/MMTk/MvmGC.h
Modified: vmkit/branches/multi-vm/include/mvm/GC.h
URL: http://llvm.org/viewvc/llvm-project/vmkit/branches/multi-vm/include/mvm/GC.h?rev=120615&r1=120614&r2=120615&view=diff
==============================================================================
--- vmkit/branches/multi-vm/include/mvm/GC.h (original)
+++ vmkit/branches/multi-vm/include/mvm/GC.h Wed Dec 1 16:22:45 2010
@@ -56,6 +56,8 @@
CommonVirtualTable() {}
+ static int numberOfCommonEntries() { return 3; }
+
static void emptyTracer(void*) {}
};
Modified: vmkit/branches/multi-vm/lib/Mvm/GCMmap2/MvmGC.h
URL: http://llvm.org/viewvc/llvm-project/vmkit/branches/multi-vm/lib/Mvm/GCMmap2/MvmGC.h?rev=120615&r1=120614&r2=120615&view=diff
==============================================================================
--- vmkit/branches/multi-vm/lib/Mvm/GCMmap2/MvmGC.h (original)
+++ vmkit/branches/multi-vm/lib/Mvm/GCMmap2/MvmGC.h Wed Dec 1 16:22:45 2010
@@ -20,7 +20,7 @@
class GCVirtualTable : public CommonVirtualTable {
public:
static uint32_t numberOfBaseFunctions() {
- return 3;
+ return numberOfCommonEntries();
}
static uint32_t numberOfSpecializedTracers() {
Modified: vmkit/branches/multi-vm/lib/Mvm/MMTk/MvmGC.h
URL: http://llvm.org/viewvc/llvm-project/vmkit/branches/multi-vm/lib/Mvm/MMTk/MvmGC.h?rev=120615&r1=120614&r2=120615&view=diff
==============================================================================
--- vmkit/branches/multi-vm/lib/Mvm/MMTk/MvmGC.h (original)
+++ vmkit/branches/multi-vm/lib/Mvm/MMTk/MvmGC.h Wed Dec 1 16:22:45 2010
@@ -22,7 +22,7 @@
uintptr_t specializedTracers[1];
static uint32_t numberOfBaseFunctions() {
- return 4;
+ return numberOfCommonEntries() + 1;
}
static uint32_t numberOfSpecializedTracers() {
More information about the vmkit-commits
mailing list