Allocate core-local memory for all threads.