Mail Archives: djgpp-workers/2002/05/16/16:24:35
> > Do I need unixy sbrk flag in this case?
>
> No, you don't. But you could try with and without it, if Charles
> thinks its will be useful.
I have no idea if it's useful yet. If we are dieing in sbrk(), this
is the one bit which radically changes sbrk() behavior.
Note, you can clear the unixy sbrk bit, on the fly, and do all future
allocations in non-move manner. But don't set the bit after startup
with it clear, or you will certainly crash.
So, if you start in the debugger, you can modify this flag while debugging
the exact same binary, same place in debug process to see if the same
line crashes same way, or differently (or not at all...).
Since the debugger can allocate memory also, worse case is they end up
with blocks interlevened between debugger, application, debugger, app.
With unixy sbrk, app can't be non-contiguous, so it physically moves
the application in memory. Just beware.
- Raw text -