Forum Navigation
Support a preallocate-all GC scheme
Moderators:
kris
Posted: 08/20/07 18:06:24In situations where it is not possible to allow GC runs, it would be cool to have this.
Therefore the GC needs to have one more methods:
- allocationsAllowed( bool enable );
if the application calls allocationsAllowed( false ), any allocation, even from the tango internals will cause an exception to happen. In this case, it should be a subclass of TracedException?.
This allows applications to detect there memory leaks quickly.