This is the mail archive of the gcc-bugs@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]

[Bug libgcj/21775] NPE in java::util::logging::Logger::getCallerStackFrame caused by incorrect hand-optimization


------- Additional Comments From greenrd at greenrd dot org  2005-05-27 18:12 -------
Here is the patch, which I've tested with both my reduced and my real test cases:

--- libjava/java/util/logging/natLogger.cc.orig 2005-05-27 19:09:32.000000000 +0100
+++ libjava/java/util/logging/natLogger.cc      2005-05-27 00:43:24.000000000 +0100
@@ -31,7 +31,7 @@
   gnu::gcj::runtime::StackTrace *t
     = new gnu::gcj::runtime::StackTrace(4);
   java::lang::Class *klass = NULL;
-  int i = 2;
+  int i = 1;
   try
     {
       // skip until this class

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21775


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