reclaim memory every 1k events in live operation or replay

This commit is contained in:
Joe Bryan 2019-02-02 23:26:47 -05:00
parent 51d8b6889a
commit 4d4280651f
2 changed files with 8 additions and 0 deletions

View File

@ -2061,6 +2061,10 @@ u3_raft_chip(void)
u3z(rus);
}
if ( 0 == (u3A->ent_d % 1000ULL) ) {
u3m_reclaim();
}
}
/* u3_raft_play(): synchronously process events.

View File

@ -1090,6 +1090,10 @@ _sist_rest()
u3z(ven);
cur_d += c3_wiseof(len_w) + len_w + c3_wiseof(lar_u);
if ( 0 == (xno_w % 1000) ) {
u3m_reclaim();
}
}
fputc('\r', stderr);
fputc('\n', stderr);