From 63622fd9863046cb7c231c6fb78d4f6209b53b07 Mon Sep 17 00:00:00 2001 From: Tobias Hartmann Date: Tue, 13 Aug 2024 09:54:17 +0200 Subject: [PATCH] 8336673: [lworld] TestIdentityWithEliminateBoxInDebugInfo.java fails with migrated classes --- .../TestIdentityWithEliminateBoxInDebugInfo.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/hotspot/jtreg/compiler/eliminateAutobox/TestIdentityWithEliminateBoxInDebugInfo.java b/test/hotspot/jtreg/compiler/eliminateAutobox/TestIdentityWithEliminateBoxInDebugInfo.java index c2e659ea988..9a29d7ec1f5 100644 --- a/test/hotspot/jtreg/compiler/eliminateAutobox/TestIdentityWithEliminateBoxInDebugInfo.java +++ b/test/hotspot/jtreg/compiler/eliminateAutobox/TestIdentityWithEliminateBoxInDebugInfo.java @@ -1,4 +1,5 @@ /* + * Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2021, Huawei Technologies Co., Ltd. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * @@ -25,7 +26,7 @@ * @test * @bug 8261137 * @requires vm.flavor == "server" - * @summary Verify that box object identity matches after deoptimization when it is eliminated. + * @summary Verify that box object content matches after deoptimization when it is eliminated. * @library /test/lib * * @run main/othervm -Xbatch compiler.eliminateAutobox.TestIdentityWithEliminateBoxInDebugInfo @@ -67,7 +68,7 @@ public static void runTest() throws Exception { if (!c) { Asserts.assertTrue(a == Long.valueOf(42L)); Asserts.assertTrue(b == Long.valueOf(-42L)); - Asserts.assertFalse(h == Long.valueOf(highBitsOnly)); + Asserts.assertTrue(h == Long.valueOf(highBitsOnly)); } });