The src/os/solaris and src/os/linux directories contain quite a lot of duplicate code.
A tiny start has been made by abstracting the launcher for both into src/os/posix, but
as much refactoring between solaris and linux as possible should be done. The use of 'posix' as a directory name is perhaps a bit unfortunate, because it implies that
only posix-compliant code should exist there, when in fact much of the common code
between solaris and linux isn't posix-related or posix-compliant. We might create a 'unix'
os directory to contain the solaris/linux common code. We should also take into account
BSD and OSX in the refactoring process.
A tiny start has been made by abstracting the launcher for both into src/os/posix, but
as much refactoring between solaris and linux as possible should be done. The use of 'posix' as a directory name is perhaps a bit unfortunate, because it implies that
only posix-compliant code should exist there, when in fact much of the common code
between solaris and linux isn't posix-related or posix-compliant. We might create a 'unix'
os directory to contain the solaris/linux common code. We should also take into account
BSD and OSX in the refactoring process.
- relates to
-
JDK-8134537 Much nearly duplicated code for sun.misc.Signal support
-
- Resolved
-
-
JDK-8134538 Duplicate implementations of os::lasterror
-
- Resolved
-
-
JDK-8134540 Much nearly duplicated code for PerfMemory support
-
- Resolved
-
-
JDK-8079449 Improve os::attempt_reserve_memory_at() fallback coding on Linux, BSD, Solaris
-
- Closed
-
-
JDK-8136978 Much nearly duplicated code for vmError support
-
- Closed
-