RFR: 8265473: Move os::Linux to its own header file [v4]

David Holmes dholmes at openjdk.org
Mon Jul 11 08:05:52 UTC 2022


On Mon, 11 Jul 2022 06:48:55 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:

> - I don't _want_ access control for members in a public interface. A public interface should be clean and minimal. Allowing private members in an interface tempts devs into adding private implementation details, which have no place in a public header.

You are basically arguing against C++ class-based design there. C++ classes define both the public and non-public interfaces of a class. Header files include the full class definition. Ergo public header files have private implementation details.

-------------

PR: https://git.openjdk.org/jdk/pull/9423


More information about the hotspot-dev mailing list