On Tue, 26 Feb 2013, enh wrote:
> On Mon, Feb 25, 2013 at 4:26 PM, Joel Dice <
joel...@gmail.com> wrote:
> Hi all,
>
> I'm in the process of adding support for using Android's Java
> class library (e.g. libcore and its dependencies) to a portable
> JVM which supports both 32-bit and 64-bit architectures. �
>
>
> interesting. if that's easy to set up, that might be useful to me (as
> maintainer of libcore), so i can have a 64-bit continuous build even before
> there's a 64-bit dalvik.
Yeah, it's pretty easy. I've still got a bit more work to do porting the
VM to use libcore, but I hope to have the whole thing ready and the build
process documented by the end of the week. The work is happening in
https://github.com/dicej/avian, and will be pulled into
https://github.com/ReadyTalk/avian when it's ready. I'll let you know
then.
By the way, the VM currently supports Linux, OS X, iOS, Windows, FreeBSD,
and QNX on various architectures (ia32, x86_64, ARM, and PowerPC). I'm
hoping to get libcore working on as many of those as possible, with
Windows probably being the biggest challenge. How much, if any, of that
porting work would you be interested in pulling upstream?
Yay!
> i'm not sure you're up to date wrt the master-dalvik branch; i thought we'd
> already fixed all the 0/NULL confusion. so you should check that.
Thanks, I will.
> we should also break this up into multiple patches. in particular the SSL
> stuff will be reviewed by a different guy and should stand alone, and the
> NIO stuff is the one place where i worry about performance, so that will
> want to be tested independently. and the other stuf should be broken up into
> meaningful units too --- it makes it easier to test, and easier to revert
> only part of the work if we do hit performance/correctness problems.
How does this breakdown sound:
* ObjectStreamClass
* NativeDecimalFormat
* ExpatParser/ExpatAttributes
* the OpenSSL stuff
* the nio and libcore/io stuff
I don't think I can break down the last two into smaller chunks since
the classes in each case pass pointers around heavily, but I'm open to
advice if you think otherwise.
> i recently moved the dalvik/libcore benchmarks out of the
>
code.google.com/p/dalvik project and into libcore, though you'll still have
> to bring your own copy of vogar/caliper to be able to run them. (but that's
> only if you're interested yourself; i'll have to double-check anyway.)
Thanks, I might give that a try.