< prev index next >
test/hotspot/jtreg/gc/g1/TestFromCardCacheIndex.java
8217389: JTREG: Clean up, remove unused variable warnings
for (int i = 0; i < arrays.length; i++) {
Object[] target = arrays[i];
if (target == null) {
continue;
}
! final long startAddress = WB.getObjectAddress(target);
final long lastAddress = getObjectLastAddress(target);
final int card = getCardIndex32bit(lastAddress);
if (card == -1) {
Object[] foundArray = target;
return foundArray;
for (int i = 0; i < arrays.length; i++) {
Object[] target = arrays[i];
if (target == null) {
continue;
}
! WB.getObjectAddress(target); // startAddress not used
final long lastAddress = getObjectLastAddress(target);
final int card = getCardIndex32bit(lastAddress);
if (card == -1) {
Object[] foundArray = target;
return foundArray;
< prev index next >