Why is fork1() exported from hotspot?

Thomas Stüfe thomas.stuefe at gmail.com
Tue Oct 20 07:14:53 UTC 2015


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 os_linux.cpp is not really enlightening:
"// Something to do with the numa-aware allocator needs these symbols"

Does anyone know why this is needed?

Regards, Thomas


More information about the hotspot-runtime-dev mailing list