public inbox for java-prs@sourceware.org help / color / mirror / Atom feed
From: "daney at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: java-prs@gcc.gnu.org Subject: [Bug java/24242] New: Redundant null pointer checks generated on refrerences returned by new operator. Date: Thu, 06 Oct 2005 17:27:00 -0000 [thread overview] Message-ID: <bug-24242-7151@http.gcc.gnu.org/bugzilla/> (raw) When examining the assembler output (compiled with -O2) from this class: public class T { Object f1() { Object o = new Object(); return o.getClass(); } } We see a check for a null return value from _Jv_AllocObjectNoFinalizer (i.e. the new operator). However _Jv_AllocObjectNoFinalizer always returns non-null values. On out-of-memory it throws an OutOfMemoryError -- Summary: Redundant null pointer checks generated on refrerences returned by new operator. Product: gcc Version: 4.1.0 Status: UNCONFIRMED Keywords: missed-optimization Severity: normal Priority: P2 Component: java AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: daney at gcc dot gnu dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24242
next reply other threads:[~2005-10-06 17:27 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2005-10-06 17:27 daney at gcc dot gnu dot org [this message] 2005-10-06 17:35 ` [Bug java/24242] " pinskia at gcc dot gnu dot org 2005-11-12 20:06 ` pinskia at gcc dot gnu dot org 2005-11-12 20:09 ` 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=bug-24242-7151@http.gcc.gnu.org/bugzilla/ \ --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: linkBe 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).