Details
-
Enhancement
-
Resolution: Fixed
-
P4
-
11, 17, 21
-
b05
Description
The general approach to dealing with this is to ensure the HotSpot macro is not defined when including potentially problematic 3rd party headers, and reinstate the HotSpot macro after those includes.
It would be helpful to have a utility for performing this dance, rather than recreating it multiple times.
We should also arrange for -DNDEBUG to be defined in release builds to suppress the expansion of the standard assert macro.
Attachments
Issue Links
- duplicates
-
JDK-8299380 conflict assert definitions
- Closed
- relates to
-
JDK-8321558 HotSpot Style Guide needs update regarding stdlib assert
- Open
-
JDK-8007770 fix name clash of assert macro in debug.hpp with libc's assert macro
- Closed
-
JDK-8318078 ADLC: pass ASSERT and PRODUCT flags
- Resolved
-
JDK-8299380 conflict assert definitions
- Closed
- links to
-
Commit openjdk/jdk/3e2314d0
-
Review openjdk/jdk11u-dev/2239
-
Review openjdk/jdk17u-dev/1940
-
Review openjdk/jdk/11770