From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jakub Jelinek To: Andrew Haley Cc: Anthony Green , "Gcc@Gcc. Gnu. Org" , "Java@Gcc. Gnu. Org" Subject: Re: basic block reordering + java Date: Fri, 21 Sep 2001 07:33:00 -0000 Message-id: <20010921163757.Q2189@sunsite.ms.mff.cuni.cz> References: <005601c142aa$039ed920$5be6b4cd@cygnus.com> <15275.20209.228138.771073@cuddles.cambridge.redhat.com> X-SW-Source: 2001-09/msg00841.html On Fri, Sep 21, 2001 at 03:30:09PM +0100, Andrew Haley wrote: > Anthony Green writes: > > > > Also, I find that if the last NullPointerException branch is taken, > > printStackTrace() will produce incorrect results. You end up seeing the > > function after this in place of the one calling _Jv_ThrowNullPointerException. > > Should we be backing up the program counter somewhere? (or emitting a NOP at > > the very end of each function?) > > We use backtrace() from glibc. If it's wrong, this is a glibc bug. Note that with tail call optimization some routines can be skipped in the backtrace. I don't know if this is the case here, but I thought I'd mention this... Jakub