diff --git a/test/hotspot/jtreg/compiler/rangechecks/TestLongRangeCheck.java b/test/hotspot/jtreg/compiler/rangechecks/TestLongRangeCheck.java index 6c0a2403c9915..4dda3731cdbe0 100644 --- a/test/hotspot/jtreg/compiler/rangechecks/TestLongRangeCheck.java +++ b/test/hotspot/jtreg/compiler/rangechecks/TestLongRangeCheck.java @@ -1,4 +1,5 @@ /* + * Copyright (c) 2026, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2021, Red Hat, Inc. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * @@ -25,8 +26,7 @@ * @test * @bug 8259609 8276116 * @summary C2: optimize long range checks in long counted loops - * @requires vm.compiler2.enabled - * @requires vm.compMode != "Xcomp" + * @requires vm.compiler2.enabled & vm.compMode != "Xcomp" & vm.opt.DeoptimizeALot != true * @library /test/lib / * @modules java.base/jdk.internal.util * @build jdk.test.whitebox.WhiteBox