[Mono-dev] Walking all managed objects
Miguel de Icaza
miguel at novell.com
Tue Jul 3 12:21:16 EDT 2007
> i'll gladly go with mono_gchandle_new_weakref solution you mentioned,
> if you think there is no real overhead in our use case.
> Basically i would need to know that mono_gchandle_new_weakref has no
> noticable overhead when the primary use case is quickly allocating
> temporary memory (Those are always wrapper objects containing 8 bytes
> of data) and letting it be garbage collected shortly after.
If you are only wrapping 8 bytes of data, have you considering using
structs, and declaring those variables on the method entry point? That
would allocate those objects on the stack.
More information about the Mono-devel-list
mailing list