This is the mail archive of the
java-discuss@sources.redhat.com
mailing list for the Java project.
Re: alloca and native code
- To: Oskar Liljeblad <osk at hem dot passagen dot se>
- Subject: Re: alloca and native code
- From: Tom Tromey <tromey at cygnus dot com>
- Date: 12 Sep 2000 08:14:47 -0600
- Cc: java-discuss at sourceware dot cygnus dot com
- References: <20000912123132.A27966@strix.eductussyd.se>
- Reply-To: tromey at cygnus dot com
>>>>> "Oskar" == Oskar Liljeblad <osk@hem.passagen.se> writes:
Oskar> Is it ok to use alloca from native code?
Yes. We use it sometimes in libjava. Even more frequently we use
variable-sized arrays, since they are less of a hassle -- no need to
test for and conditionally include <alloca.h>.
Tom