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: Don't generate NullPointerExceptions for arraylength and arrayload


>>>>> "Andrew" == Andrew Haley <aph@redhat.com> writes:

Andrew> In general, an aggressively optimising compiler is allowed to remove
Andrew> such loads, but the JLS doesn't permit it.

If we're going to leave this as-is, we should file a PR for it.  I
doubt real code ever runs into this case.  At the same time, it is
definitely a compliance bug.  I don't want us to be lax about
compliance, even though it is inconvenient at times.

Tom


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