3 ms·
These collectors have fixed pause time given a fixed heap size. All collectors have that. My toy mark&sweep collector have a fixed worst case pause time of 100
by bjourne 10y ago
These collectors have fixed pause time given a fixed heap size. All collectors have that. My toy mark&sweep collector have a fixed worst case pause time of 100 ms on a 128kb heap. The trick is offering a worst case guarantee on an arbitrarily sized heap.
- nickpsecurity 10y agoDo hard, real-time, embedded systems usually have arbitrary sized or changing heaps? I thought most avoided dynamic or non-deterministic resource use as much as possible. Restricting the heap to a known size ahead of time then reaping benefits of HRT GC & higher-level language still seems worthwhile in many use-cases.
- bjourne 10y agoThey don't, so there is certainly many use cases for real time gc:s. But keep in mind that the more parameters are known, such as heap size, memory allocation profile, software to run, hardware and so on the less useful gc becomes. Often the cost of the extra complexity + specialized hardware outweighs the benefits of using a gc:ed language.
- nickpsecurity 10y agoThose points are true. You have to balance these tradeoffs. The main point of my side of this discussion is (a) they exist and (b) they're useful sometimes so worth considering. That's all I'm saying.