RFR: 8370983: Add methods for primitive operators to support method handles [v2]

Chen Liang liach at openjdk.org
Fri Oct 31 22:18:02 UTC 2025


On Fri, 31 Oct 2025 20:59:40 GMT, Joe Darcy <darcy at openjdk.org> wrote:

>> Initial draft of a partial set of methods wrapping primitive operators to get feedback on the class providing this functionality.
>
> Joe Darcy has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Respond to review feedback, fix typos, etc.

I strongly oppose adding operators corresponding to individual instructions. They are not the best primitive operations, and using them as methods in method handles may suffer the same problem as Objects::equals performance drop due to lack of dedicated separate profile due to shared bytecode.

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

PR Comment: https://git.openjdk.org/jdk/pull/28081#issuecomment-3475053182


More information about the core-libs-dev mailing list