8242787: sun/tools/jhsdb/HeapDumpTestWithActiveProcess.java fails with sun.jvm.hotspot.types.WrongTypeException

Reviewed-by: amenkov, sspitsyn, iklam
This commit is contained in:
Chris Plummer 2020-04-17 10:09:06 -07:00
parent 1b45bf2d58
commit a4d318c92c
2 changed files with 3 additions and 13 deletions

View File

@ -244,13 +244,7 @@ public class ObjectHeap {
while (handle.lessThan(top)) {
Oop obj = null;
try {
obj = newOop(handle);
} catch (UnknownOopException exp) {
if (DEBUG) {
throw new RuntimeException(" UnknownOopException " + exp);
}
}
obj = newOop(handle);
if (obj == null) {
throw new UnknownOopException();
}
@ -263,11 +257,7 @@ public class ObjectHeap {
handle = handle.addOffsetToAsOopHandle(obj.getObjectSize());
}
}
catch (AddressException e) {
// This is okay at the top of these regions
}
catch (UnknownOopException e) {
} catch (AddressException | UnknownOopException | WrongTypeException e) {
// This is okay at the top of these regions
}
}

View File

@ -940,7 +940,7 @@ java/util/ServiceLoader/ReloadTest.java 8242935 generic-all
# svc_tools
sun/tools/jhsdb/BasicLauncherTest.java 8211767 linux-ppc64,linux-ppc64le
sun/tools/jhsdb/HeapDumpTestWithActiveProcess.java 8231634,8242787 generic-all
sun/tools/jhsdb/HeapDumpTestWithActiveProcess.java 8231634,8242789 generic-all
############################################################################