Skip to content

Commit bf3cfbe

Browse files
committed
8351487: [ubsan] jvmti.h runtime error: load of value which is not a valid value
Reviewed-by: cjplummer, amenkov, sspitsyn
1 parent 2a53f5a commit bf3cfbe

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

test/hotspot/jtreg/vmTestbase/nsk/jvmti/GetErrorName/geterrname002/TestDescription.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2018, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -35,6 +35,9 @@
3535
* JVMTI_ERROR_NULL_POINTER if name_ptr is NULL.
3636
* COMMENTS
3737
*
38+
* @comment We test with arguments out of scope of the jvmti enums, which causes
39+
* ubsan issues.
40+
* @requires !vm.ubsan
3841
* @library /vmTestbase
3942
* /test/lib
4043
* @run main/othervm/native

test/hotspot/jtreg/vmTestbase/nsk/jvmti/SetVerboseFlag/setvrbflag002/TestDescription.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2018, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -34,6 +34,9 @@
3434
* if flag is not a jvmtiVerboseFlag.
3535
* COMMENTS
3636
*
37+
* @comment We test with arguments out of scope of the jvmti enums, which causes
38+
* ubsan issues.
39+
* @requires !vm.ubsan
3740
* @library /vmTestbase
3841
* /test/lib
3942
* @run main/othervm/native

0 commit comments

Comments
 (0)