We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6fd2ed commit 41b643aCopy full SHA for 41b643a
src/hotspot/share/gc/z/zPageAllocator.cpp
@@ -88,7 +88,7 @@ class ZPageAllocation : public StackObj {
88
_old_seqnum(ZGeneration::old()->seqnum()),
89
_harvested(0),
90
_committed(0),
91
- _numa_id(ZNUMA::id()),
+ _numa_id(-1),
92
_claimed_mappings(1),
93
_node(),
94
_stall_result() {}
@@ -708,6 +708,8 @@ bool ZPageAllocator::claim_physical_or_stall(ZPageAllocation* allocation) {
708
{
709
ZLocker<ZLock> locker(&_lock);
710
711
+ // Always start at the current thread's affinity for local allocation
712
+ allocation->set_numa_id(ZNUMA::id());
713
if (claim_physical_round_robin(allocation)) {
714
return true;
715
}
0 commit comments