mirror of
https://github.com/corda/corda.git
synced 2025-01-08 14:03:06 +00:00
only consider gen2 oversized if its capacity exceeds (InitialGen2CapacityInBytes / BytesPerWord)
This commit is contained in:
parent
612f4fa0b8
commit
c096c8f1e4
@ -16,7 +16,7 @@ const unsigned Top = ~static_cast<unsigned>(0);
|
|||||||
|
|
||||||
const unsigned InitialGen2CapacityInBytes = 4 * 1024 * 1024;
|
const unsigned InitialGen2CapacityInBytes = 4 * 1024 * 1024;
|
||||||
|
|
||||||
const bool Verbose = false;
|
const bool Verbose = true;
|
||||||
const bool Verbose2 = false;
|
const bool Verbose2 = false;
|
||||||
const bool Debug = false;
|
const bool Debug = false;
|
||||||
const bool DebugFixies = false;
|
const bool DebugFixies = false;
|
||||||
@ -606,7 +606,8 @@ initNextGen1(Context* c, unsigned footprint)
|
|||||||
inline bool
|
inline bool
|
||||||
oversizedGen2(Context* c)
|
oversizedGen2(Context* c)
|
||||||
{
|
{
|
||||||
return c->gen2.position() < (c->gen2.capacity() / 4);
|
return c->gen2.capacity() > (InitialGen2CapacityInBytes / BytesPerWord)
|
||||||
|
and c->gen2.position() < (c->gen2.capacity() / 4);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void
|
inline void
|
||||||
|
Loading…
Reference in New Issue
Block a user