Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to tweak libgc garbage collector for C++

807575Mar 21 2007 — edited Mar 21 2007
Hi 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 :-(
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 18 2007
Added on Mar 21 2007
1 comment
192 views