Why is fork1() exported from hotspot? (original) (raw)

Christian Thalinger christian.thalinger at oracle.com
Tue Oct 20 23:55:33 UTC 2015


On Oct 19, 2015, at 9:14 PM, Thomas Stüfe <thomas.stuefe at gmail.com> wrote:

Hi all, on Linux we define and export "fork1()" - a stub for fork() - and "fork1" also appears in linker mapfiles for bsd and AIX. The latter, I am sure, is just a copy-paste-effect. Why do we need to define and export fork1() for non-solaris platforms? We only ever use it on Solaris. The comment in oslinux.cpp is not really enlightening: "// Something to do with the numa-aware allocator needs these symbols”

Can you see what changeset added this comment or was it before Mercurial?

Does anyone know why this is needed? Regards, Thomas



More information about the hotspot-runtime-dev mailing list