8373262: Parallel: gc/metaspace/CompressedClassSpaceSizeInJmapHeap.java fails

Reviewed-by: cjplummer
This commit is contained in:
Albert Mingkun Yang 2025-12-08 16:11:28 +00:00
parent 355755d35d
commit 811591c5c3

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2003, 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -60,11 +60,11 @@ public class ParallelScavengeHeap extends CollectedHeap {
// Accessors
public PSYoungGen youngGen() {
return VMObjectFactory.newObject(PSYoungGen.class, youngGenField.getValue());
return VMObjectFactory.newObject(PSYoungGen.class, youngGenField.getValue(addr));
}
public PSOldGen oldGen() {
return VMObjectFactory.newObject(PSOldGen.class, oldGenField.getValue());
return VMObjectFactory.newObject(PSOldGen.class, oldGenField.getValue(addr));
}
public long capacity() {