public inbox for java@gcc.gnu.org
 help / color / mirror / Atom feed
From: Bryce McKinlay <bmckinlay@gmail.com>
To: Andrew Haley <aph@redhat.com>
Cc: Mike Hearn <mike@plan99.net>, GCC Java <java@gcc.gnu.org>
Subject: Re: Trouble building gcj 4.8.1
Date: Wed, 03 Jul 2013 21:31:00 -0000	[thread overview]
Message-ID: <CALUNu-rKffsMuyH2of2jo97pz9iFnSJCiQKuhN=H3WTA7ZcFZQ@mail.gmail.com> (raw)
In-Reply-To: <51D42B66.90607@redhat.com>

On Wed, Jul 3, 2013 at 2:47 PM, Andrew Haley <aph@redhat.com> wrote:
> On 07/03/2013 02:43 PM, Mike Hearn wrote:
>> if String is
>> not special it'd be nice to move to the classpath version which seems
>> to be much more thorough.
>
> Definitely.  The only problem is that no-one has had the time to ensure that
> nothing breaks.

Well, although it isn't treated specially by the compiler, libgcj's
String is also largely implemented as native CNI code, where as the
GNU Classpath one is pure Java.

Pure Java is better for most VMs, but not so much for GCJ. libgcj's
version probably performs better than the Classpath implementation
would in the GCJ environment.

> I did a
> quick hack which involves using the existing methods that take charset names
> and just calling them with Charset.forName() but I seriously doubt this is
> really fully compatible or would pass the Java test suite.

Yeah, this should more-or-less work, as long as the Charset in
question is supported by libgcj's native encoders. The native encoders
should be a lot faster than the java.nio.charset ones, too. NIO
buffers don't perform well with GCJ due to it's inability to inline
virtual calls.

Bryce

  reply	other threads:[~2013-07-03 21:31 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-24 13:21 Mike Hearn
2013-06-24 16:48 ` Mike Hearn
2013-06-24 17:04   ` Andrew Haley
2013-06-24 17:17     ` Mike Hearn
2013-06-24 17:26       ` Andrew Haley
2013-06-24 20:36         ` Matthias Klose
2013-06-25 13:39         ` Mike Hearn
2013-06-25 13:53           ` Mike Hearn
2013-06-25 14:07             ` Andrew Haley
2013-06-25 14:05           ` Andrew Haley
2013-06-25 14:10             ` Mike Hearn
2013-06-25 14:12               ` Andrew Haley
2013-06-25 14:15                 ` Mike Hearn
2013-06-25 14:21                   ` Andrew Haley
2013-06-28  1:28                     ` Andïï
2013-06-28  9:06                       ` Andrew Haley
2013-07-02 14:53                     ` Bryce McKinlay
     [not found]                       ` <CANEZrP1tLxpu818cFGdgma+RVL32yRJJUOyb5m8QF=mhTZVueg@mail.gmail.com>
2013-07-03 13:43                         ` Mike Hearn
2013-07-03 13:47                           ` Andrew Haley
2013-07-03 21:31                             ` Bryce McKinlay [this message]
2013-06-25 14:05           ` Andrew Haley

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='CALUNu-rKffsMuyH2of2jo97pz9iFnSJCiQKuhN=H3WTA7ZcFZQ@mail.gmail.com' \
    --to=bmckinlay@gmail.com \
    --cc=aph@redhat.com \
    --cc=java@gcc.gnu.org \
    --cc=mike@plan99.net \
    /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).