mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-24 06:40:05 +00:00
8068733: [TESTBUG] runtime/Unsafe/Reallocate.java sometimes fails when running with -Xcomp
Reviewed-by: coleenp, gtriantafill
This commit is contained in:
parent
8467a04feb
commit
90c58f1cc9
@ -25,7 +25,7 @@
|
||||
* @test
|
||||
* @bug 8058897
|
||||
* @library /testlibrary
|
||||
* @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:MallocMaxTestWords=20m Reallocate
|
||||
* @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:MallocMaxTestWords=100m Reallocate
|
||||
*/
|
||||
|
||||
import com.oracle.java.testlibrary.*;
|
||||
@ -57,7 +57,7 @@ public class Reallocate {
|
||||
|
||||
// Make sure we can throw an OOME when we fail to reallocate due to OOM
|
||||
try {
|
||||
unsafe.reallocateMemory(address, 20 * 1024 * 1024 * 8);
|
||||
unsafe.reallocateMemory(address, 100 * 1024 * 1024 * 8);
|
||||
} catch (OutOfMemoryError e) {
|
||||
// Expected
|
||||
return;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user