GC fixes/improvements
- Have a real finalizer stage for destroying objects instead of mixing them in to the sweep stage. - Base GC rate on a running average of the allocation rate instead of basing it on the amount of time taken since the last sweep started. - More GC stats for better tweaking.
This commit is contained in:
parent
7e10138993
commit
7f899bd412
4 changed files with 379 additions and 171 deletions
|
|
@ -221,6 +221,11 @@ public:
|
|||
Counter = 0;
|
||||
}
|
||||
|
||||
void ResetAndClock()
|
||||
{
|
||||
Counter = -static_cast<int64_t>(rdtsc());
|
||||
}
|
||||
|
||||
void Clock()
|
||||
{
|
||||
int64_t time = rdtsc();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue