This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Is this a bug in libffi testsuite on solaris2.8?


Robert Dewar writes:
 > > > Not necessarily: the memory for the trampoline is allocated by the
 > > > caller, and can be anywhere.  However, unwindtest.c does indeed
 > > > allocate it on the stack.
 > 
 > hmmm. where else could you put it and be sure not to have a memory leak?

On the heap -- where's the problem?  This is no more likely to cause a
memory leak than any other use of malloc().

Andrew.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]