public inbox for java-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* Fix bit rot in non-direct-threaded builds
@ 2011-07-12 12:55 Andrew Haley
  0 siblings, 0 replies; only message in thread
From: Andrew Haley @ 2011-07-12 12:55 UTC (permalink / raw)
  To: GCJ-patches

Non-direct-threaded code doesn't work.  It must have rotted a
log time ago.  Maybe we should remove options that never get
built.

Andrew.


2011-07-12  Andrew Haley  <aph@redhat.com>

        * interpret.cc (check_handler): Fix bit rot.
        (breakpoint_at): Likewise.

Index: interpret.cc
===================================================================
--- interpret.cc        (revision 176198)
+++ interpret.cc        (working copy)
@@ -1474,7 +1474,7 @@
               if (exc[i].handler_type.i != 0)
                     handler
                       = (_Jv_Linker::resolve_pool_entry (meth->defining_class,
-                                                                             ex$
+                                            exc[i].handler_type.i)).clazz;
 #endif /* DIRECT_THREADED */
               if (handler == NULL || handler->isAssignableFrom (exc_class))
                 {
@@ -1626,7 +1626,7 @@
       return (insn->insn == breakpoint_insn->insn);
 #else
       pc_t code = reinterpret_cast<pc_t> (bytecode ());
-      return (code[index] == breakpoint_insn);
+      return (code[index] == bp_insn_opcode);
 #endif
     }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-07-12 12:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-12 12:55 Fix bit rot in non-direct-threaded builds Andrew Haley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).