RFR: 8349523: Unused runtime calls to drem/frem should be removed

Vladimir Ivanov vlivanov at openjdk.org
Thu Feb 20 21:39:53 UTC 2025


On Thu, 20 Feb 2025 10:57:24 GMT, Quan Anh Mai <qamai at openjdk.org> wrote:

> I think this is getting increasingly ad-hoc for a pretty niche use-case. Can we have a general solution that works for other pure calls (e.g trigonometric functions), too? Related: [JDK-8347901](https://bugs.openjdk.org/browse/JDK-8347901)

There are cases when pure calls are Java methods (e.g., primitive boxing). As of now, they are detected in an adhoc manner (see [JDK-8075052](https://bugs.openjdk.org/browse/JDK-8075052)), but there's an RFE filed to introduce a mechanism to mark such methods: [JDK-8218414](https://bugs.openjdk.org/browse/JDK-8218414)

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

PR Comment: https://git.openjdk.org/jdk/pull/23694#issuecomment-2672742061


More information about the hotspot-compiler-dev mailing list