-
Bug
-
Resolution: Cannot Reproduce
-
P4
-
None
-
None
This test gets:
stdout: [];
stderr: [Exception in thread "main" java.lang.NegativeArraySizeException
at jdk.hotspot.agent/sun.jvm.hotspot.utilities.BitMap.<init>(BitMap.java:34)
at jdk.hotspot.agent/sun.jvm.hotspot.utilities.MarkBits.<init>(MarkBits.java:45)
at jdk.hotspot.agent/sun.jvm.hotspot.utilities.ReversePtrsAnalysis.run(ReversePtrsAnalysis.java:89)
at TestRevPtrsForInvokeDynamic.computeReversePointers(TestRevPtrsForInvokeDynamic.java:59)
at TestRevPtrsForInvokeDynamic.main(TestRevPtrsForInvokeDynamic.java:102)
]
exitValue = 1
MarkBits.java
public MarkBits(CollectedHeap heap) {
MemRegion reserved = heap.reservedRegion();
// Must cover "reserved" with one bit for each OopHandle
start = reserved.start();
end = reserved.end();
long numOopHandles = end.minus(start) / VM.getVM().getOopSize();
// FIXME: will have trouble with larger heap sizes
bits = new BitMap((int) numOopHandles);
}
BitMap.java
public BitMap(int sizeInBits) {
this.size = sizeInBits;
int nofWords = sizeInWords();
data = new int[nofWords];
}
stdout: [];
stderr: [Exception in thread "main" java.lang.NegativeArraySizeException
at jdk.hotspot.agent/sun.jvm.hotspot.utilities.BitMap.<init>(BitMap.java:34)
at jdk.hotspot.agent/sun.jvm.hotspot.utilities.MarkBits.<init>(MarkBits.java:45)
at jdk.hotspot.agent/sun.jvm.hotspot.utilities.ReversePtrsAnalysis.run(ReversePtrsAnalysis.java:89)
at TestRevPtrsForInvokeDynamic.computeReversePointers(TestRevPtrsForInvokeDynamic.java:59)
at TestRevPtrsForInvokeDynamic.main(TestRevPtrsForInvokeDynamic.java:102)
]
exitValue = 1
MarkBits.java
public MarkBits(CollectedHeap heap) {
MemRegion reserved = heap.reservedRegion();
// Must cover "reserved" with one bit for each OopHandle
start = reserved.start();
end = reserved.end();
long numOopHandles = end.minus(start) / VM.getVM().getOopSize();
// FIXME: will have trouble with larger heap sizes
bits = new BitMap((int) numOopHandles);
}
BitMap.java
public BitMap(int sizeInBits) {
this.size = sizeInBits;
int nofWords = sizeInWords();
data = new int[nofWords];
}
- relates to
-
JDK-8241235 serviceability/sa/TestRevPtrsForInvokeDynamic.java fails with AssertionFailure "FIXME: add derived pointer table"
- Open
There are no Sub-Tasks for this issue.