From bd52bbfa272691caab227d736021362c06449535 Mon Sep 17 00:00:00 2001 From: Sergey Bylokhov Date: Wed, 13 Sep 2023 02:33:03 +0000 Subject: [PATCH] 8316060: test/hotspot/jtreg/runtime/reflect/ReflectOutOfMemoryError.java may fail if heap is huge Reviewed-by: lmesnik, dholmes --- test/hotspot/jtreg/runtime/reflect/ReflectOutOfMemoryError.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/hotspot/jtreg/runtime/reflect/ReflectOutOfMemoryError.java b/test/hotspot/jtreg/runtime/reflect/ReflectOutOfMemoryError.java index 929b32770e8..2d23358e96b 100644 --- a/test/hotspot/jtreg/runtime/reflect/ReflectOutOfMemoryError.java +++ b/test/hotspot/jtreg/runtime/reflect/ReflectOutOfMemoryError.java @@ -25,7 +25,7 @@ * @test * @bug 8297977 * @summary Test that throwing OOM from reflected method gets InvocationTargetException - * @run main/othervm/timeout=150 ReflectOutOfMemoryError + * @run main/othervm -Xmx128m ReflectOutOfMemoryError */ import java.lang.reflect.*;