File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed
java.base/share/native/libjava Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved.
3
- * Copyright (c) 2024 SAP SE. All rights reserved.
2
+ * Copyright (c) 2024, 2025, Oracle and/or its affiliates. All rights reserved.
3
+ * Copyright (c) 2024, 2025 SAP SE. All rights reserved.
4
4
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5
5
*
6
6
* This code is free software; you can redistribute it and/or modify it
33
33
// Useful if the function or method is known to do something special or even 'dangerous', for
34
34
// example causing desired signals/crashes.
35
35
#ifdef UNDEFINED_BEHAVIOR_SANITIZER
36
- #if defined(__clang__) || defined(__GNUC__)
36
+ #if defined(__clang__)
37
+ #define ATTRIBUTE_NO_UBSAN __attribute__ ((no_sanitize(" undefined" ," float-divide-by-zero" )))
38
+ #endif
39
+ #if defined(__GNUC__) && !defined(__clang__)
37
40
#define ATTRIBUTE_NO_UBSAN __attribute__ ((no_sanitize(" undefined" )))
38
41
#endif
39
42
#endif
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved.
3
- * Copyright (c) 2024 SAP SE. All rights reserved.
2
+ * Copyright (c) 2024, 2025, Oracle and/or its affiliates. All rights reserved.
3
+ * Copyright (c) 2024, 2025 SAP SE. All rights reserved.
4
4
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5
5
*
6
6
* This code is free software; you can redistribute it and/or modify it
32
32
* following function or method.
33
33
*/
34
34
#ifdef UNDEFINED_BEHAVIOR_SANITIZER
35
- #if defined(__clang__ ) || defined(__GNUC__ )
35
+ #if defined(__clang__ )
36
+ #define ATTRIBUTE_NO_UBSAN __attribute__((no_sanitize("undefined","float-divide-by-zero")))
37
+ #endif
38
+ #if defined(__GNUC__ ) && !defined(__clang__ )
36
39
#define ATTRIBUTE_NO_UBSAN __attribute__((no_sanitize("undefined")))
37
40
#endif
38
41
#endif
You can’t perform that action at this time.
0 commit comments