alloca and native code

Tom Tromey tromey@cygnus.com
Tue Sep 12 07:07:00 GMT 2000


>>>>> "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


More information about the Java mailing list