public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
From: "tromey at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: java-prs@gcc.gnu.org
Subject: [Bug java/20044] Wrong method call semantics (maybe instanceof/invokespecial)
Date: Fri, 18 Feb 2005 14:52:00 -0000	[thread overview]
Message-ID: <20050218005309.9020.qmail@sourceware.org> (raw)
In-Reply-To: <20050217234912.20044.bonniot@users.sf.net>


------- Additional Comments From tromey at gcc dot gnu dot org  2005-02-18 00:53 -------
This bug occurs in 3 places.

* In the interpreter and the old abi, the problem is similar.
  We do not properly implement the ACC_SUPER semantics of the
  invokespecial opcode.  The fix in both these cases is similar,
  the "invokespecial Object.equals" must be changed into a
  non-virtual call to "A.equals"

* In the BC ABI, the problem is the same, but the solution is different.
  We can't search the concrete class hierarchy in the compiler.
  Instead we must emit an atable (not otable, as the resulting call
  will be nonvirtual) reference for the method.  However, it must be
  a special atable reference, since we cannot know the precise name
  of the declaring class.  One approach to fixing this would be to
  emit a name like "+ClassNameHere" to indicate that we must search.
  Or, better, some magic value like (void*)1 or NULL would suffice here
  (since we know we must always start the search with the current class'
  superclass)

-- 


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


  parent reply	other threads:[~2005-02-18  0:53 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-18  0:01 [Bug java/20044] New: " bonniot at users dot sf dot net
2005-02-18  0:53 ` [Bug java/20044] " bonniot at users dot sf dot net
2005-02-18  1:36 ` pinskia at gcc dot gnu dot org
2005-02-18  4:52 ` pinskia at gcc dot gnu dot org
2005-02-18 14:52 ` tromey at gcc dot gnu dot org [this message]
2005-05-04 17:45 ` bkonrath at redhat dot com
2005-05-04 20:53 ` tromey at gcc dot gnu dot org
2005-05-16 14:45 ` aph at gcc dot gnu dot org
     [not found] <bug-20044-6811@http.gcc.gnu.org/bugzilla/>
2005-12-15 15:54 ` aph at gcc dot gnu dot org
2006-03-29 22:39 ` tromey at gcc dot gnu dot org
2006-07-19  3:52 ` pinskia at gcc dot gnu dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050218005309.9020.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=java-prs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).