On 9/11/07, steve goldman <[EMAIL PROTECTED]> 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. 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. Volker
