c++ - Precise mode in Boehm Garbage Collector -
i've read on webpage of mono using boehm gc in precise mode. use boehm gc c++, however, have found nothing in documentation or headers indicate precise mode, less how turn on.
any information whether has precise mode default , how turn on, or kind of modification mono developers?
the file doc/gcinterface.html garbage collector (archive here) states:
void * gc_malloc_atomic(size_t nbytes) allocates nbytes of storage. requires (amortized) time proportional nbytes. resulting object automatically deallocated when unreferenced. client promises resulting object never contain pointers. memory not cleared. preferred way allocate strings, floating point arrays, bitmaps, etc. more precise information pointer locations can communicated collector using interface in gc_typed.h in distribution.
it looks there "precise" interface can used.
Comments
Post a Comment