8351487: [ubsan] jvmti.h runtime error: load of value which is not a valid value

Reviewed-by: cjplummer, amenkov, sspitsyn
This commit is contained in:
Matthias Baesken 2025-07-10 07:08:26 +00:00
parent 2a53f5a5c2
commit bf3cfbeff4
2 changed files with 8 additions and 2 deletions

View File

@ -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

View File

@ -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