Re: [glib] malloc and bdwgc
- From: 张海 <dreaming in code zh gmail com>
- To: Christian Hergert <christian hergert me>, gtk-devel-list gnome org
- Subject: Re: [glib] malloc and bdwgc
- Date: Tue, 12 Jan 2016 09:05:36 +0000
Emm... what do you mean by "setup your GC"? My GC is done in another shared lib libgc.so, and I want to make the malloc of all other components GC_malloc except for libgc.so. How should I accomplish this?
By searching on GitHub, I also found no reference in Mono code to GMemVTable. Do you now how they dealt with this?
On 01/11/2016 11:53 PM, Thomas Martitz wrote:
> Yes, but the point of my previous email is that the third-party
> GC_malloc() might eventually call malloc() itself, and by defining a
> malloc() in my program, GC_malloc() will again call into my malloc() and
> then GC_malloc() until stack overflow. Do you think this will happen?
You can write your application in a shared library and then make your
primary executable an application loader. dlopen() after you've setup
your GC.
Some commercial products did something similar to this to deal with
bundled vs. user supplied gtk+ as well as glibc band-aids, etc.
As for mono, it doesn't use GMemVTable.
-- Christian
_______________________________________________
gtk-devel-list mailing list
gtk-devel-list gnome org
https://mail.gnome.org/mailman/listinfo/gtk-devel-list
--
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]