1. A method for non-uniform memory access aware garbage collector thread processing, comprising: storing, by a first garbage collector thread, (a) references to objects stored in a first memory space in a first queue and (b) references to objects, stored in a memory space other than the first memory space, in a second queue; storing, by a second garbage collector thread, (a) references to objects stored in a second memory space in a third queue and (b) references to objects, stored in a memory space other than the second memory space, in a fourth queue; wherein the references in the first queue and the references in the fourth queue are different; prioritizing, by the first garbage collector thread, processing of the references stored in the first queue by the first garbage collector thread over the references stored in the fourth queue by the second garbage collector thread; identifying at least a subset, of the references in the fourth queue, that reference an object stored in the first memory space; and prioritizing, by the first garbage collector thread, processing of at least the subset of the references stored in the fourth queue by the second garbage collector thread over the references stored in the second queue by the first garbage collector thread, even though the fourth queue is not generated by the first garbage collector thread; wherein a first latency for accessing objects corresponding to at least the subset of the references stored in the fourth queue is less than a second latency for accessing objects corresponding to references stored in the second queue, with respect to the first garbage collector thread; wherein the method is performed by at least one device including a hardware processor.