changeset 7901:194b81937d60

Merge
author stefank
date Fri, 20 Feb 2015 15:47:22 +0000
parents 89aef9b18319 ae3dbd31307f
children 532bf0752bbc
files
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/agent/src/share/classes/sun/jvm/hotspot/memory/GenCollectedHeap.java	Fri Feb 20 15:23:01 2015 +0100
+++ b/agent/src/share/classes/sun/jvm/hotspot/memory/GenCollectedHeap.java	Fri Feb 20 15:47:22 2015 +0000
@@ -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;