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

[Bug libgcj/23495] java.lang.String.equals is suboptimal



------- Comment #13 from tromey at gcc dot gnu dot org  2006-03-10 00:39 -------
Subject: Bug 23495

Author: tromey
Date: Fri Mar 10 00:39:49 2006
New Revision: 111919

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=111919
Log:
        PR libgcj/23495:
        * java/lang/natString.cc (_Jv_NewString): Use memcpy.
        (equals): Use memcmp.
        (contentEquals): Likewise.
        (getChars): Use memcpy.
        (toCharArray): Likewise.
        (regionMatches): Use memcmp.
        (regionMatches): Likewise.
        (startsWith): Likewise.
        (concat): Use memcpy.
        (valueOf): Likewise.

Modified:
    trunk/libjava/ChangeLog
    trunk/libjava/java/lang/natString.cc


-- 


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


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