+ struct shm_object *shm_object;
+#ifdef HAVE_LIBNUMA
+ int oldnode, node;
+
+ oldnode = numa_preferred();
+ if (cpu >= 0) {
+ node = numa_node_of_cpu(cpu);
+ if (node >= 0)
+ numa_set_preferred(node);
+ }
+ if (cpu < 0 || node < 0)
+ numa_set_localalloc();
+#endif /* HAVE_LIBNUMA */