This is the mail archive of the java-patches@gcc.gnu.org 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]
Other format: [Raw text]

Re: Patch: FYI:


Tom Tromey wrote:

>        * include/win32.h (_Jv_platform_solib_prefix): New define.
>        (_Jv_platform_solib_suffix): Likewise.
>        * include/posix.h (_Jv_platform_solib_prefix): New define.
>        (_Jv_platform_solib_suffix): Likewise.
>        * java/lang/natRuntime.cc: Include StackTrace.h.
>        (_load): Use findLibrary and new platform defines.
>        (nativeGetLibname): Use new platform defines.
>
>
>+      gnu::gcj::runtime::StackTrace *t = new
gnu::gcj::runtime::StackTrace(10);
>+      for (int i = 0; i < 10; ++i)
>+       {
>+         jclass klass = t->classAt(i);
>+         if (klass != NULL)

This does not catch an ArrayOutOfBounds exception thrown by classAt
(e.g. because the target does not define HAVE_BACKTRACE like on s390),
which causes initialization failures due to uncaught exceptions.

This results in a number of libjava testsuite regressions on s390 and
s390x.  Both CVS head and 3.3 branch are affected, it seems.


Mit freundlichen Gruessen / Best Regards

Ulrich Weigand

--
  Dr. Ulrich Weigand
  Linux for S/390 Design & Development
  IBM Deutschland Entwicklung GmbH, Schoenaicher Str. 220, 71032 Boeblingen
  Phone: +49-7031/16-3727   ---   Email: Ulrich.Weigand@de.ibm.com


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