Khimenko Victor wrote:
Perhaps. If I'll be able to understood how to use GC at all (and no, NOT as replacement for normal new/free functions!).
As I've never used it so far, I can't tell you, but there must be a way to use it without replacing malloc/free.
P.S. If you are just replacing malloc with GC_alloc then you asking for troubles (nasty DoS attacks).
Depends on the kind of program, doesn't it? If it isn't a server (or run by one), the worst it could do is eat up memory and CPU time. But a malicious user who can run a program on a system can do this, anyway. Am I missing something?
Of course, using GC_malloc_atomic can have its advantages, and you can use it with the hooks mentioned in my previous mail.
Frank