Skip to content

Commit

Permalink
GC fixes/improvements
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
rheit authored and coelckers committed Nov 6, 2022
1 parent 7e10138 commit 7f899bd
Show file tree
Hide file tree
Showing 4 changed files with 379 additions and 171 deletions.
5 changes: 5 additions & 0 deletions src/common/engine/stats.h
Expand Up @@ -221,6 +221,11 @@ class cycle_t
Counter = 0;
}

void ResetAndClock()
{
Counter = -static_cast<int64_t>(rdtsc());
}

void Clock()
{
int64_t time = rdtsc();
Expand Down

0 comments on commit 7f899bd

Please sign in to comment.