mirror of
https://github.com/corda/corda.git
synced 2024-12-28 16:58:55 +00:00
fix stack overflow in stress() due to StateResource destructor
This commit is contained in:
parent
4670055b03
commit
7dab93de00
@ -17,7 +17,7 @@ const unsigned MinimumGen2SizeInBytes = 128 * 1024;
|
||||
|
||||
const unsigned Top = ~static_cast<unsigned>(0);
|
||||
|
||||
const bool Verbose = true;
|
||||
const bool Verbose = false;
|
||||
const bool Debug = false;
|
||||
|
||||
class Context;
|
||||
|
@ -1221,13 +1221,14 @@ stress(Thread* t)
|
||||
{
|
||||
if ((not t->stress) and t->state != Thread::NoState) {
|
||||
t->stress = true;
|
||||
ENTER(t, Thread::ExclusiveState);
|
||||
{ ENTER(t, Thread::ExclusiveState);
|
||||
|
||||
# ifdef VM_STRESS_MAJOR
|
||||
collect(t, Heap::MajorCollection);
|
||||
# else // not VM_STRESS_MAJOR
|
||||
collect(t, Heap::MinorCollection);
|
||||
# endif // not VM_STRESS_MAJOR
|
||||
}
|
||||
|
||||
t->stress = false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user