9-Mar-00 07:21 you wrote:
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.
Just do not define -DREDIRECT_MALLOC in Makefile :-)
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?
Hmm. Is it really Ok for you mail program to eat all memory and crash suddenly while trying to open message ?
Of course, using GC_malloc_atomic can have its advantages, and you can use it with the hooks mentioned in my previous mail.
Just barely :-/ You need to EXPLICITLY change new strategy every time :-(( Especially annoying since you want to use GC_malloc_atomic for plain strings...