hotspot linux-sparc support has been pushed

Paul Hohensee Paul.Hohensee at Sun.COM
Fri Apr 25 14:49:26 PDT 2008


into

http://hg.openjdk.java.net/jdk7/hotspot-rt/hotspot

openjdk build support already exists (see below).

The hotspot-rt changeset id is

435e64505015

hotspot-rt will be pushed up into the hotspot integration repository at

http://hg.openjdk.java.net/jdk7/hotspot/hotspot

within a week, and hotspot will in turn be pushed into the jdk7 project
repository at

http://hg.openjdk.java.net/jdk7/jdk7/hotspot

in time for the next jdk7 build, which might be up to a month from now.

The changes include adding a src/os_cpu/linux_sparc directory and a change
of a 64-bit constant in src/share/vm/oops/oop.inline.hpp to use 'ULL' 
instead of
'LL' as a suffix so gcc4 wouldn't choke.

My build machine's 'uname -a' produces

Linux memleak 2.6.15-26-sparc64-smp #1 SMP Fri Sep 8 20:10:24 UTC 2006 
sparc64 GNU/Linux

which is ancient.  memleak is a Sun T2000 (i.e., a niagara 1) box.

'gcc -v' produces

Using built-in specs.
Target: sparc-linux-gnu
Configured with: ../src/configure -v 
--enable-languages=c,c++,java,f95,objc,ada,treelang --prefix=/usr 
--enable-shared --with-system-zlib --libexecdir=/usr/lib 
--without-included-gettext --enable-threads=posix --enable-nls 
--program-suffix=-4.0 --enable-__cxa_atexit --enable-clocale=gnu 
--enable-libstdcxx-debug --enable-java-awt=gtk-default 
--enable-gtk-cairo 
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre 
--enable-mpfr --disable-werror --with-cpu=v8 --enable-checking=release 
sparc-linux-gnu
Thread model: posix
gcc version 4.0.3 (Ubuntu 4.0.3-1ubuntu5)

also a bit long in the tooth.

All the hotspot make targets work (I tried both client and server,
product, optimized, fastdebug, and jvmg) and the resulting vms seem to work.
I've got bootstrap jdks but don't know where to put them for public access.
Full 32-bit openjdk builds successfully on my build machine, but 64-bit 
fails with
system library linkage issues, probably because it's running such an old
distribution.  If someone would kindly point me at the latest 
linux-sparc ubuntu
release I'd appreciate it.  I've attached the csh scripts I use to build 
the jdk.
If anyone wants the build logs, let me know: I don't want to spam the list.

Performance is as good as on solaris, e.g. the compilers generate 
exactly the
same code as they do on solaris.  A gotcha is that large pages aren't on 
by default
on linux: you must set up a large page cache and use -XX:+UseLargePages
-XX:LargePageSizeInBytes=<n> on the command line.  That's the only
performance glitch you might encounter that I can think of right now.

Some time ago the port passed 95%+ of the jcks, with most of the 
failures in jdi.
Probably only a few real problems left to fix.

The code is provided as-is and is totally unsupported by Sun.  It'd be 
really
great if someone would step up and propose a project to maintain the port.
If enough users are willing to pay $ for support, Sun might eventually 
decide
to support it.

The hotspot team will maintain the linux-sparc specific code on a best
efforts basis, which, because os_cpu code mutates very slowly, means
it'll bit-rot very slowly.  I at least will try to build it every few 
months.
We'll be really happy to accept contributions and will sponser them if
needed.  Same applies to the rest of the linux-sparc specific openjdk code,
though the vast majority of that is in the makefiles and also doesn't change
all that rapidly (one hopes :) ).

Enjoy,

Paul

-------------- next part --------------
A non-text attachment was scrubbed...
Name: build-linux-sparc.csh
Type: application/x-csh
Size: 1464 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20080425/48bb08ad/build-linux-sparc.csh 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: build-linux-sparcv9.csh
Type: application/x-csh
Size: 1357 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20080425/48bb08ad/build-linux-sparcv9.csh 
-------------- next part --------------
An embedded message was scrubbed...
From: Paul Hohensee <Paul.Hohensee at Sun.COM>
Subject: Re: Someone is doing a linux-sparc port! (Paul Hohensee)
Date: Tue, 04 Mar 2008 13:27:43 -0500
Size: 3773
Url: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20080425/48bb08ad/attachment.nws 
-------------- next part --------------
An embedded message was scrubbed...
From: Paul Hohensee <Paul.Hohensee at Sun.COM>
Subject: Re: OpenJDK zero on sparc linux
Date: Mon, 07 Apr 2008 14:31:04 -0400
Size: 2434
Url: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20080425/48bb08ad/attachment-0001.nws 


More information about the distro-pkg-dev mailing list