preserve vm flags of bootstrap class (except for BootstrapFlag) in updateBootstrapClass()

This commit is contained in:
Joel Dice 2007-11-05 08:39:48 -07:00
parent 19d36cc463
commit 16ea75f91c
3 changed files with 3 additions and 6 deletions

View File

@ -1854,10 +1854,6 @@ interpret(Thread* t)
object method = resolveMethod(t, codePool(t, code), index - 1);
if (UNLIKELY(exception)) goto throw_;
fprintf(stderr, "invokevirtual %s.%s\n",
&byteArrayBody(t, className(t, methodClass(t, method)), 0),
&byteArrayBody(t, methodName(t, method), 0));
unsigned parameterFootprint = methodParameterFootprint(t, method);
if (LIKELY(peekObject(t, sp - parameterFootprint))) {

View File

@ -1377,7 +1377,8 @@ updateBootstrapClass(Thread* t, object bootstrapClass, object class_)
ENTER(t, Thread::ExclusiveState);
classVmFlags(t, bootstrapClass) = classVmFlags(t, class_);
classVmFlags(t, bootstrapClass) &= ~BootstrapFlag;
classVmFlags(t, bootstrapClass) |= classVmFlags(t, class_);
classFlags(t, bootstrapClass) = classFlags(t, class_);
set(t, bootstrapClass, ClassSuper, classSuper(t, class_));

View File

@ -29,7 +29,7 @@ const bool Verbose = false;
const bool DebugRun = false;
const bool DebugStack = false;
const bool DebugMonitors = false;
const bool DebugReferences = true;
const bool DebugReferences = false;
const uintptr_t HashTakenMark = 1;
const uintptr_t ExtendedMark = 2;