mirror of
https://github.com/corda/corda.git
synced 2025-06-13 12:48:18 +00:00
more GC stress fixes
This commit is contained in:
@ -1341,6 +1341,11 @@ Thread::dispose()
|
||||
systemThread = 0;
|
||||
}
|
||||
|
||||
#ifdef VM_STRESS
|
||||
vm->system->free(heap);
|
||||
heap = 0;
|
||||
#endif // VM_STRESS
|
||||
|
||||
if (allocator) {
|
||||
allocator->free(this);
|
||||
}
|
||||
@ -1377,7 +1382,8 @@ enter(Thread* t, Thread::State s)
|
||||
|
||||
switch (s) {
|
||||
case Thread::ExclusiveState: {
|
||||
assert(t, t->state == Thread::ActiveState);
|
||||
assert(t, t->state == Thread::ActiveState
|
||||
or t->state == Thread::ExitState);
|
||||
|
||||
while (t->vm->exclusive) {
|
||||
// another thread got here first.
|
||||
|
Reference in New Issue
Block a user