stack overflow

Per Bothner per@bothner.com
Tue Nov 2 16:27:00 GMT 1999


Tom Tromey <tromey@cygnus.com> writes:

> Godmar> On obvious disadvantage of this approach is that it would
> Godmar> undermine the Java==C++ illusion CNI promises.  Calling Java
> Godmar> code from separately compiled C/C++ code wouldn't be possible
> Godmar> in a transparent manner.

While I wouldn't be in favor of this solution either, it would imply
that C++ routines also have to have the same implicit stackLimit
parameter as Java routines.  Thus you would not break the Java/C++
compatibility by doing this;  instead, you'd be modifying the
calling convention (ABI) for (potentially) *all* languages.
(For binary compatibility, you might have an option to only use
the modified ABI for "Java" routines.)
-- 
	--Per Bothner
per@bothner.com   http://www.bothner.com/~per/


More information about the Java mailing list