RFR: 8367282: FORBID_C_FUNCTION needs exception spec consistent with library declaration [v2]

Kim Barrett kbarrett at openjdk.org
Thu Sep 11 04:11:29 UTC 2025


> Please review this change to FORBID_C_FUNCTION to make the exception specs of
> the forbidding declarations match up with the exception specs of the
> associated library declarations. This needs to account for different platform
> libraries either having or not having exception specs. It's needed because,
> after switching to C++17, some compilers complain about some differences in
> the exception specs.
> 
> Also removed the workaround for JDK-8367051, which should no longer be needed
> after this change.
> 
> Hoping someone will test the aix-ppc port. @MBaesken or @TheRealMDoerr ?
> 
> Testing: mach5 tier1, GHA sanity checks (nearly finished)
> Locally (linux-aarch64) built with clang, which failed without the JDK-8367051
> workaround.

Kim Barrett has updated the pull request incrementally with one additional commit since the last revision:

  work around AIX noexcept inconsistencies

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/27180/files
  - new: https://git.openjdk.org/jdk/pull/27180/files/0fcb5f53..52f28437

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=27180&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=27180&range=00-01

  Stats: 10 lines in 2 files changed: 5 ins; 0 del; 5 mod
  Patch: https://git.openjdk.org/jdk/pull/27180.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/27180/head:pull/27180

PR: https://git.openjdk.org/jdk/pull/27180


More information about the hotspot-dev mailing list