changeset 29202:bcce9add4235

8073532: jmap -heap fails after generation array removal Summary: Fix field accessor code in the SA Reviewed-by: jwilhelm, brutisso
author mgerdin
date Fri, 20 Feb 2015 12:43:46 +0100
parents fee2bbb2ec1d
children 5024f7b3322c c2fa06b633b3
files hotspot/agent/src/share/classes/sun/jvm/hotspot/memory/GenCollectedHeap.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/hotspot/agent/src/share/classes/sun/jvm/hotspot/memory/GenCollectedHeap.java	Wed Feb 18 10:28:27 2015 +0100
+++ b/hotspot/agent/src/share/classes/sun/jvm/hotspot/memory/GenCollectedHeap.java	Fri Feb 20 12:43:46 2015 +0100
@@ -76,9 +76,9 @@
 
     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;