if (permGen.isIn(obj.getHandle())) {
return InPerm;
}
} else if (heap instanceof ParallelScavengeHeap) {
PSYoungGen youngGen = ((ParallelScavengeHeap) heap).youngGen();
if (youngGen.edenSpace().contains(obj.getHandle())) {
return InEden;
} else if (youngGen.fromSpace().contains(obj.getHandle())) {
return InSurvivor;
}
PSOldGen oldGen = ((ParallelScavengeHeap) heap).oldGen();