RFR: JDK-8303166: Disable RTTI for Hotspot when building with MSVC [v2]
Justin King
jcking at openjdk.org
Fri Feb 24 19:52:41 UTC 2023
> Disable RTTI `-GR-` for Hotspot when building with MSVC. This drops the size of `jvm.dll` by roughly 1 MB. Hotspot does not rely on RTTI and it is disabled for both GCC/Clang and Open XL C/C++ already. This change disables it for MSVC, ensuring we do not accidently rely on RTTI for Windows-specific code while also decreasing the resulting binary size.
>
> Cheers to @alexmenkov for finding the tricky root cause of why disabling RTTI was causing a subset of serviceability agent tests to fail.
Justin King has updated the pull request incrementally with one additional commit since the last revision:
Update src/hotspot/share/runtime/notificationThread.hpp
Co-authored-by: Chris Plummer <chris.plummer at oracle.com>
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/12743/files
- new: https://git.openjdk.org/jdk/pull/12743/files/87d707eb..9a882207
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=12743&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=12743&range=00-01
Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
Patch: https://git.openjdk.org/jdk/pull/12743.diff
Fetch: git fetch https://git.openjdk.org/jdk pull/12743/head:pull/12743
PR: https://git.openjdk.org/jdk/pull/12743
More information about the build-dev
mailing list