mirror of
https://github.com/corda/corda.git
synced 2025-01-01 02:36:44 +00:00
Merge pull request #515 from dicej/lambda-fixes-2
initialize MyThread::dynamicTable on thread creation
This commit is contained in:
commit
8ff5f2a26a
@ -1311,10 +1311,6 @@ Allocator* allocator(MyThread* t);
|
|||||||
|
|
||||||
unsigned addDynamic(MyThread* t, GcInvocation* invocation)
|
unsigned addDynamic(MyThread* t, GcInvocation* invocation)
|
||||||
{
|
{
|
||||||
if (t->dynamicTable == nullptr) {
|
|
||||||
t->dynamicTable = dynamicTable(t);
|
|
||||||
}
|
|
||||||
|
|
||||||
ACQUIRE(t, t->m->classLock);
|
ACQUIRE(t, t->m->classLock);
|
||||||
|
|
||||||
int index = invocation->index();
|
int index = invocation->index();
|
||||||
@ -8828,6 +8824,7 @@ class MyProcessor : public Processor {
|
|||||||
t->heapImage = heapImage;
|
t->heapImage = heapImage;
|
||||||
t->codeImage = codeImage;
|
t->codeImage = codeImage;
|
||||||
t->thunkTable = thunkTable;
|
t->thunkTable = thunkTable;
|
||||||
|
t->dynamicTable = local::dynamicTable(t);
|
||||||
|
|
||||||
#if TARGET_BYTES_PER_WORD == BYTES_PER_WORD
|
#if TARGET_BYTES_PER_WORD == BYTES_PER_WORD
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user