In message <[EMAIL PROTECTED]>, Julian Elischer writes: >I still think that in such a case it should be possible to >'test the commitment' by touching all the allocated memory >while trapping page faults. And what do you do if you get one? There's no undo button for SIGSEGV. Traditionally, you return from the signal handler right where you were. Can you get out of this with longjmp()? Probably. It's not exactly supported or guaranteed. In any event: 1. The C language spec doesn't require you to do this. 2. Other implementations have provided this guarantee, at least as an option. It's odd that I see lots of people arguing for segfaults killing the process accessing memory that has been "successfully" allocated, but no one arguing for the process getting killed when it exceeds a disk quota. -s To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
- Re: [hackers] Re: Setting memory allocators for ... Tony Finch
- Re: [hackers] Re: Setting memory allocators for ... Drew Eckhardt
- Re: [hackers] Re: Setting memory allocators for ... Tony Finch
- Re: [hackers] Re: Setting memory allocators for ... Maxime Henrion
- Re: [hackers] Re: Setting memory allocators for ... Tony Finch
- Re: Setting memory allocators for library functions. Daniel C. Sobral
- Re: Setting memory allocators for library functions. Peter Seebach
- Re: Setting memory allocators for library functi... Warner Losh
- Re: Setting memory allocators for library functi... Archie Cobbs
- Re: Setting memory allocators for library functi... Julian Elischer
- Re: Setting memory allocators for library functi... Peter Seebach
- Re: Setting memory allocators for library functi... Daniel C. Sobral
- Re: Setting memory allocators for library functi... Peter Seebach
- Re: Setting memory allocators for library functi... Peter Dufault
- Re: Setting memory allocators for library functi... Matt Dillon
- Re: Setting memory allocators for library functi... Daniel C. Sobral
- Re: Setting memory allocators for library functi... Matt Dillon
- Re: Setting memory allocators for library functi... Peter Seebach
- Re: Setting memory allocators for library functi... Daniel C. Sobral
- Re: Setting memory allocators for library functi... Matt Dillon
- Re: Setting memory allocators for library functi... Daniel C. Sobral