[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] Calling GEM from within a signal handler



Konrad Kokoszkiewicz <draco@mi.com.pl> writes:

|> Hi,
|> 
|> > On Fri, Apr 16, 1999 at 06:26:45PM +0200, Konrad Kokoszkiewicz wrote:
|> > > Of course, I realize that, but this is not what is being discussed.
|> > 
|> > You gave the example without mentioning the drawbacks, that's why I did
|> > that.
|> 
|> Drawbacks didn't seem important to me because of three reasons:
|> 
|> 1) it wasn't the theme of the discuss
|> 2) the penalty is big only when DATA/BSS are big. When these segments
|>    are zero, no copying takes place.

The kernel must copy the *whole* heap.  And without any non-constant data
your program is completely useless (it can't have any stack!).

-- 
Andreas Schwab                                      "And now for something
schwab@issan.cs.uni-dortmund.de                      completely different"
schwab@gnu.org