8073532: jmap -heap fails after generation array removal
Fix field accessor code in the SA Reviewed-by: jwilhelm, brutisso
This commit is contained in:
parent
d40f08d0a3
commit
12c46a210f
@ -76,9 +76,9 @@ public class GenCollectedHeap extends SharedHeap {
|
||||
|
||||
switch (i) {
|
||||
case 0:
|
||||
return genFactory.newObject(youngGenField.getAddress());
|
||||
return genFactory.newObject(youngGenField.getValue(addr));
|
||||
case 1:
|
||||
return genFactory.newObject(oldGenField.getAddress());
|
||||
return genFactory.newObject(oldGenField.getValue(addr));
|
||||
default:
|
||||
// no generation for i, and assertions disabled.
|
||||
return null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user