JDK-8286808 : Loom: Simplify generate_cont_thaw by passing thaw_kind directly
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 19
  • Priority: P4
  • Status: In Progress
  • Resolution: Unresolved
  • Submitted: 2022-05-16
  • Updated: 2022-05-16
Related Reports
Relates :  
Description
I was staring at this code for x86_32 port, and it seems `exception` implies `return_barrier`. This mostly irks me because we are passing `2` to `Continuation::prepare_thaw` and implicitly coercing it to `bool` during the call. We can instead call with `1` when `return_barrier`.

Further cleanup makes the change more obvious; we can pass `thaw_kind` directly to `generate_cont_thaw`, and thus simplify the code.
Comments
A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk/pull/8725 Date: 2022-05-16 11:11:45 +0000
16-05-2022