[Mono-dev] Point of GC memory allocation in Mono
kumpera at gmail.com
Mon Feb 3 22:32:41 UTC 2014
SGen generates fast variants of those functions that don't transition to
native code to alloc memory,
you can disable them in sgen-conf.hq
On Mon, Feb 3, 2014 at 1:11 PM, serus <fabian.nagel at gmail.com> wrote:
> Dear Devs,
> I plan to experiment with the garbage collector and, to get me started, I
> wrote a small C# program that allocates a couple of objects and then I
> to use GDB to find the function calls that allocates memory for these
> The function candidates that I identified are: /mono_gc_alloc_obj/ and
> /mono_gc_try_alloc_obj_nolock/ (both in /sgen-alloc.c/).
> When GDB reaches either breakpoint, I tried to identify whether it is the
> correct call by using the function's /size/ parameter and the fields
> /vtable->klass->name/ / /vtable->klass->name_space/.
> However, my approach seems to no work as I cannot find a single qualifying
> call. Could someone please hint me at where my thoughts are wrong and how
> succeed with what I am trying to do.
> View this message in context:
> Sent from the Mono - Dev mailing list archive at Nabble.com.
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-devel-list