From bf3cfbeff414356aaf2b0933568ff648beace2c5 Mon Sep 17 00:00:00 2001 From: Matthias Baesken Date: Thu, 10 Jul 2025 07:08:26 +0000 Subject: [PATCH] 8351487: [ubsan] jvmti.h runtime error: load of value which is not a valid value Reviewed-by: cjplummer, amenkov, sspitsyn --- .../jvmti/GetErrorName/geterrname002/TestDescription.java | 5 ++++- .../jvmti/SetVerboseFlag/setvrbflag002/TestDescription.java | 5 ++++- 2 files changed, 8 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 7f3745d6701..763ebeccd02 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,9 @@ * JVMTI_ERROR_NULL_POINTER if name_ptr is NULL. * COMMENTS * + * @comment We test with arguments out of scope of the jvmti enums, which causes + * ubsan issues. + * @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 e42e086f588..d85da6d7128 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,9 @@ * if flag is not a jvmtiVerboseFlag. * COMMENTS * + * @comment We test with arguments out of scope of the jvmti enums, which causes + * ubsan issues. + * @requires !vm.ubsan * @library /vmTestbase * /test/lib * @run main/othervm/native