Merge pull request #515 from dicej/lambda-fixes-2

initialize MyThread::dynamicTable on thread creation
This commit is contained in:
Joel Dice 2016-12-20 09:10:11 -07:00 committed by GitHub
commit 8ff5f2a26a

View File

@ -1311,10 +1311,6 @@ Allocator* allocator(MyThread* t);
unsigned addDynamic(MyThread* t, GcInvocation* invocation)
{
if (t->dynamicTable == nullptr) {
t->dynamicTable = dynamicTable(t);
}
ACQUIRE(t, t->m->classLock);
int index = invocation->index();
@ -8828,6 +8824,7 @@ class MyProcessor : public Processor {
t->heapImage = heapImage;
t->codeImage = codeImage;
t->thunkTable = thunkTable;
t->dynamicTable = local::dynamicTable(t);
#if TARGET_BYTES_PER_WORD == BYTES_PER_WORD