RFR: 8276571: C2: pass compilation options as structure [v3]

Christian Hagedorn chagedorn at openjdk.java.net
Fri Nov 5 09:16:12 UTC 2021


On Thu, 4 Nov 2021 16:39:45 GMT, Vladimir Kozlov <kvn at openjdk.org> wrote:

>> Currently we pass several compilation options as separate arguments to `Compile`: 
>> 
>> Compile C(env, target, entry_bci, subsume_loads, do_escape_analysis, eliminate_boxing, do_locks_coarsening, install_code, directive); 
>> 
>> Originally we had only `subsume_loads` option but we added few since then and we may add more. 
>> 
>> I suggest to add new `Options` class to pass these values into `Compile`.
>
> Vladimir Kozlov has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Per-use Options factory method

Looks good!

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

Marked as reviewed by chagedorn (Reviewer).

PR: https://git.openjdk.java.net/jdk/pull/6237


More information about the hotspot-dev mailing list