jorendorff / cell-gc

A very small GC in Rust, with a safe API
MIT License
61 stars 4 forks source link

Support multiple pages of objects (per type per heap) #4

Closed jorendorff closed 7 years ago

jorendorff commented 8 years ago

Currently, we allow at most 1 page of objects per gc_ref_type! in your program, per Heap. The number of objects of any given type you can allocate, then, is roughly 4096 divided by the size of the type.

This is a pretty silly restriction, and it should be easy to lift. (The hardest part is retaining the ability to test full and near-full heap conditions.)