Permalink
Browse files

fix bootimage build

We must call compileThunks before fixupMethods is run to ensure that
we have access to the compileInterface and invokeInterface thunks when
populating the interface method tables.
  • Loading branch information...
1 parent ca333a1 commit 2642d2e511a3aba4aba4169802f323a1ed90166b @dicej dicej committed Jul 11, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/compile.cpp
View
@@ -7773,6 +7773,8 @@ class MyProcessor: public Processor {
codeAllocator.capacity = ExecutableAreaSizeInBytes;
}
+ local::compileThunks(static_cast<MyThread*>(t), &codeAllocator, this);
+
if (image) {
local::boot(static_cast<MyThread*>(t), image);
} else {
@@ -7783,8 +7785,6 @@ class MyProcessor: public Processor {
set(t, methodTree, TreeNodeRight, methodTreeSentinal);
}
- local::compileThunks(static_cast<MyThread*>(t), &codeAllocator, this);
-
segFaultHandler.m = t->m;
expect(t, t->m->system->success
(t->m->system->handleSegFault(&segFaultHandler)));

0 comments on commit 2642d2e

Please sign in to comment.