RFR: 8304939: os::win32::exit_process_or_thread should be marked noreturn [v5]

David Holmes dholmes at openjdk.org
Mon Oct 30 07:18:32 UTC 2023


On Fri, 27 Oct 2023 05:30:41 GMT, Julian Waters <jwaters at openjdk.org> wrote:

> Side note: Should the Style Guide only permit noreturn for void methods? It's Undefined Behaviour when applied to something that returns int for instance, such as exit_process_or_thread here (which I had to refactor to void)

I think it is implied that attributes should only be used in a way that is valid.

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

PR Comment: https://git.openjdk.org/jdk/pull/16303#issuecomment-1784605126


More information about the hotspot-dev mailing list