This is the mail archive of the java-discuss@sourceware.cygnus.com mailing list for the Java project.


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

Re: stack overflow


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/

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