From b848c09a3486dc4c67a0531d6341c018ae77e676 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Tue, 17 Jul 2007 07:22:29 -0600 Subject: [PATCH] more GC stress fixes --- makefile | 2 +- src/heap.cpp | 2 +- src/machine.cpp | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/makefile b/makefile index 1265b1ca4f..3ed3263a39 100644 --- a/makefile +++ b/makefile @@ -16,7 +16,7 @@ src = src classpath = classpath test = test -input = $(cls)/Exceptions.class +input = $(cls)/Threads.class cxx = g++ cc = gcc diff --git a/src/heap.cpp b/src/heap.cpp index 8ec6820f71..28d742d2b1 100644 --- a/src/heap.cpp +++ b/src/heap.cpp @@ -17,7 +17,7 @@ const unsigned MinimumGen2SizeInBytes = 128 * 1024; const unsigned Top = ~static_cast(0); -const bool Verbose = false; +const bool Verbose = true; const bool Debug = false; class Context; diff --git a/src/machine.cpp b/src/machine.cpp index 42111bbe02..363371db7c 100644 --- a/src/machine.cpp +++ b/src/machine.cpp @@ -910,6 +910,8 @@ parseMethodTable(Thread* t, Stream& s, object class_, object pool) object method = arrayBody(t, methodTable, i); if (methodFlags(t, method) & ACC_NATIVE) { + PROTECT(t, method); + object overloaded = hashMapFind (t, nativeMap, method, methodHash, methodEqual); @@ -932,7 +934,7 @@ parseMethodTable(Thread* t, Stream& s, object class_, object pool) // generate class vtable unsigned i = 0; - object vtable = makeArray(t, virtualCount, false); + object vtable = makeArray(t, virtualCount, true); if (classFlags(t, class_) & ACC_INTERFACE) { PROTECT(t, vtable);