@@ -2726,11 +2726,13 @@ commit_memory(addr, bytes, alignment_hint, !ExecMem); } } void os::numa_make_global(char *addr, size_t bytes) { + if (numa_get_groups_num() > 1) { Linux::numa_interleave_memory(addr, bytes); + } } // Define for numa_set_bind_policy(int). Setting the argument to 0 will set the // bind policy to MPOL_PREFERRED for the current thread. #define USE_MPOL_PREFERRED 0