RFR: 8365606: Container code should not be using jlong/julong [v2]
Andrew Haley
aph at openjdk.org
Mon Oct 27 09:20:10 UTC 2025
On Mon, 27 Oct 2025 08:33:22 GMT, Stefan Karlsson <stefank at openjdk.org> wrote:
> it wasn't because we wanted to figure out the color of the bike shed but rather how to write safer code that makes it less likely to accidentally introduce bugs because of type conflation.
This. A function that returns its value as a side effect on a reference parameter is (at best) a code smell.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/27743#issuecomment-3450229373
More information about the hotspot-dev
mailing list