RFR: 8339714: Delete tedious bool type define

SendaoYan syan at openjdk.org
Mon Sep 9 09:56:13 UTC 2024


Hi all,
  This PR delete tedious bool type define in `src/java.base/unix/native/libjsig/jsig.c` and `src/utils/hsdis/binutils/hsdis-binutils.c`. After JEP 347([JDK-8246032](https://bugs.openjdk.org/browse/JDK-8246032)), I think we can "#include <stdbool.h>" to use bool type directly, like [string.h](https://github.com/openjdk/jdk/blob/master/src/java.desktop/unix/native/libpipewire/include/spa/utils/string.h#L13) do.
  Make code more concision, the risk is quite low.

Additional testing:

- [x] Local build with --with-hsdis=binutils --with-binutils=$HOME/software/binutils
- [ ] Jtreg tests(include tier1/tier2/tier3 etc.) on linux x64
- [ ] Jtreg tests(include tier1/tier2/tier3 etc.) on linux aarch64

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

Commit messages:
 - 8339714: Delete tedious bool type define

Changes: https://git.openjdk.org/jdk/pull/20909/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=20909&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8339714
  Stats: 14 lines in 2 files changed: 1 ins; 12 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/20909.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/20909/head:pull/20909

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


More information about the hotspot-compiler-dev mailing list