JDK GNU/Linux SPARC and MIPS
Steve.Goldman at Sun.COM
Tue Sep 11 07:59:59 PDT 2007
Volker Simonis wrote:
> On 9/11/07, steve goldman <Steve.Goldman at sun.com> wrote:
>> Sunil Amitkumar Janki wrote:
>>> Am I naive to think that Solaris and Linux SPARC should be
>>> almost the same? I have copied the solaris_sparc directory
>>> to linux_sparc and changed all references to Solaris to Linux.
>> That is certainly how thing usually go.
>> Now if I can put a project in someone's head one of the things we've
>> wanted to for a long time is to have an os directory "*nix" where most
>> os the solaris/linux code would go and eliminate the redundancy. Then
>> add something like os_flavor to the MakeDeps macros and platform files
>> to cover the place where linux and solaris differ. I don't know if this
>> then causes factoring <os_cpu> into both <os_cpu> and <os_flavor_cpu> or
>> not. I suspect it does.
> This sounds like nice to have, although it will be probably quite a lot of work.
It's probably not that bad it's just never been much of a priority
> Perhaps it would be a better idea to clean up the native parts in the
> j2se/src/solaris directory first. It currently contains the native
> Solaris AND the Linux sources, separeted only by '#ifdef'. (Notice
> that j2se/src/linux only contains the Linux man-pages). As OpenJDK
> will be ported to more "*nix"-like os-platforms, this will be probably
> a major point of confusion.
yeah that is kind of gross. I only work on hotspot so I can't do much on
that front. Maybe someone on the libraries team that you cc'd will comment.
More information about the hotspot-dev