Update UnsafeTest.java (#1655)
This commit is contained in:
parent
b7d6487547
commit
99a0b6e2f1
|
@ -68,9 +68,14 @@ public class UnsafeTest {
|
|||
sum += array.get((long) Integer.MAX_VALUE + i);
|
||||
}
|
||||
|
||||
long arraySize = array.size();
|
||||
|
||||
array.freeMemory();
|
||||
|
||||
//then
|
||||
assertEquals(array.size(), SUPER_SIZE);
|
||||
assertEquals(arraySize, SUPER_SIZE);
|
||||
assertEquals(sum, 300);
|
||||
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Reference in New Issue