mirror of
https://github.com/corda/corda.git
synced 2025-01-22 12:28:11 +00:00
force a major GC whenever the tenured fixed object footprint doubles
This commit is contained in:
parent
1a79fc45df
commit
633990b5fe
12
src/heap.cpp
12
src/heap.cpp
@ -738,11 +738,9 @@ sweepFixies(Context* c)
|
||||
f->marked = false;
|
||||
}
|
||||
|
||||
if (c->tenuredFixieCeiling > c->tenuredFixieFootprint * 4) {
|
||||
c->tenuredFixieCeiling = max
|
||||
(c->tenuredFixieCeiling / 2,
|
||||
InitialTenuredFixieCeilingInBytes / BytesPerWord);
|
||||
}
|
||||
c->tenuredFixieCeiling = max
|
||||
(c->tenuredFixieFootprint * 2,
|
||||
InitialTenuredFixieCeilingInBytes / BytesPerWord);
|
||||
}
|
||||
|
||||
inline void*
|
||||
@ -1429,10 +1427,6 @@ collect(Context* c, unsigned footprint)
|
||||
initNextGen1(c, footprint);
|
||||
|
||||
if (c->mode == Heap::MajorCollection) {
|
||||
c->tenuredFixieCeiling = max
|
||||
((c->fixieTenureFootprint + c->tenuredFixieFootprint) * 2,
|
||||
InitialTenuredFixieCeilingInBytes / BytesPerWord);
|
||||
|
||||
initNextGen2(c);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user