This is the mail archive of the gcc-patches@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: [C++ PATCH] Enforce extern "Java" aggregates to be heap allocated (PR c++/30293, c++/30294)


Mark Mitchell writes:
 > Jakub Jelinek wrote:
 > 
 > > All of the listed attributes are also true of C++, though C++ has
 > > extra features (for example in C++ objects may be allocated not just
 > > on the heap, but also statically or in a local stack frame).
 > 
 > This looks OK, but I've picked some nits.  I'd also like one of the Java
 > maintainers to sign off on the concept, just to be sure that we don't
 > break Java CNI code in the field.

As far as I'm aware, it only makes any sense to create instances of
Java classes on the heap.  I have difficulty figuring out any
circumstances where not to do so would not be an error.

Andrew.

-- 
Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, UK
Registered in England and Wales No. 3798903


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