From a346557b34b4b32a151cdf9c0828138abdf23649 Mon Sep 17 00:00:00 2001 From: MBaesken Date: Mon, 7 Jul 2025 14:16:59 +0200 Subject: [PATCH 1/2] JDK-8351487 --- .../nsk/jvmti/GetErrorName/geterrname002/TestDescription.java | 3 ++- .../jvmti/SetVerboseFlag/setvrbflag002/TestDescription.java | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/test/hotspot/jtreg/vmTestbase/nsk/jvmti/GetErrorName/geterrname002/TestDescription.java b/test/hotspot/jtreg/vmTestbase/nsk/jvmti/GetErrorName/geterrname002/TestDescription.java index 7f3745d67015e..1500bcefc48b5 100644 --- a/test/hotspot/jtreg/vmTestbase/nsk/jvmti/GetErrorName/geterrname002/TestDescription.java +++ b/test/hotspot/jtreg/vmTestbase/nsk/jvmti/GetErrorName/geterrname002/TestDescription.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2018, 2025, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -35,6 +35,7 @@ * JVMTI_ERROR_NULL_POINTER if name_ptr is NULL. * COMMENTS * + * @requires !vm.ubsan * @library /vmTestbase * /test/lib * @run main/othervm/native diff --git a/test/hotspot/jtreg/vmTestbase/nsk/jvmti/SetVerboseFlag/setvrbflag002/TestDescription.java b/test/hotspot/jtreg/vmTestbase/nsk/jvmti/SetVerboseFlag/setvrbflag002/TestDescription.java index e42e086f588f4..0600915a58d70 100644 --- a/test/hotspot/jtreg/vmTestbase/nsk/jvmti/SetVerboseFlag/setvrbflag002/TestDescription.java +++ b/test/hotspot/jtreg/vmTestbase/nsk/jvmti/SetVerboseFlag/setvrbflag002/TestDescription.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2018, 2025, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -34,6 +34,7 @@ * if flag is not a jvmtiVerboseFlag. * COMMENTS * + * @requires !vm.ubsan * @library /vmTestbase * /test/lib * @run main/othervm/native From a0ca0ddc031c8be2308ec62ff977b347779ce5ae Mon Sep 17 00:00:00 2001 From: MBaesken Date: Tue, 8 Jul 2025 10:24:11 +0200 Subject: [PATCH 2/2] Add comments --- .../nsk/jvmti/GetErrorName/geterrname002/TestDescription.java | 2 ++ .../nsk/jvmti/SetVerboseFlag/setvrbflag002/TestDescription.java | 2 ++ 2 files changed, 4 insertions(+) diff --git a/test/hotspot/jtreg/vmTestbase/nsk/jvmti/GetErrorName/geterrname002/TestDescription.java b/test/hotspot/jtreg/vmTestbase/nsk/jvmti/GetErrorName/geterrname002/TestDescription.java index 1500bcefc48b5..cfa49f8069fb1 100644 --- a/test/hotspot/jtreg/vmTestbase/nsk/jvmti/GetErrorName/geterrname002/TestDescription.java +++ b/test/hotspot/jtreg/vmTestbase/nsk/jvmti/GetErrorName/geterrname002/TestDescription.java @@ -36,6 +36,8 @@ * COMMENTS * * @requires !vm.ubsan + * @comment We test with arguments out of scope of the jvmti enums, this causes + * ubsan issues. * @library /vmTestbase * /test/lib * @run main/othervm/native diff --git a/test/hotspot/jtreg/vmTestbase/nsk/jvmti/SetVerboseFlag/setvrbflag002/TestDescription.java b/test/hotspot/jtreg/vmTestbase/nsk/jvmti/SetVerboseFlag/setvrbflag002/TestDescription.java index 0600915a58d70..e8e737afb98a1 100644 --- a/test/hotspot/jtreg/vmTestbase/nsk/jvmti/SetVerboseFlag/setvrbflag002/TestDescription.java +++ b/test/hotspot/jtreg/vmTestbase/nsk/jvmti/SetVerboseFlag/setvrbflag002/TestDescription.java @@ -35,6 +35,8 @@ * COMMENTS * * @requires !vm.ubsan + * @comment We test with arguments out of scope of the jvmti enums, this causes + * ubsan issues. * @library /vmTestbase * /test/lib * @run main/othervm/native