1. A method in a data processing system for supporting shared library text replication, the method comprising: detecting a fork system call by a first process with a first affinity domain, wherein the first process requires a shared library; responsive to detecting the fork system call, creating a second process as a replication of the first process; and selecting a second affinity domain for the second process.