How to tweak libgc garbage collector for C++
807575Mar 21 2007 — edited Mar 21 2007Hi there,
i have a question regarding garbage collection:
We are developing here a C++application with sunstudio11 and make use of libgc.
Now we have the problem that our application makes exhaustive use of heap allocation and deallocation, which leads to very big heap-size/vss of the program.
I already played around with gcmonitor and found out, that the libgc can be tweaked via calls to the methods gcPriority, gcCollect, gcLogfile, ...
Unfortunately i found no header file, that contains the method declarations :-(
Does anyone know where to find it?
Best Regards, Thanks in advance, Andreas Etrernach
PS: I already played around via call gcCollect (obtaining method pointer via dlsym). This is working perfectly, but i must not use any undocumented function :-(