dragonwell-project / dragonwell11

Alibaba Dragonwell11 JDK
https://www.aliyun.com/product/dragonwell
GNU General Public License v2.0
561 stars 115 forks source link

[GC] Fix option type in IOPrioritySizePolicy #852

Closed weixlu closed 3 months ago

weixlu commented 3 months ago

Summary: change type from float to uint for IOPrioritySizePolicyEdenScale to avoid build failure on aarch64

Testing: jtreg

Reviewers: maoliang.ml, yude.lyd

Issue: https://github.com/dragonwell-project/dragonwell11/issues/

CR: https://github.com/dragonwell-project/dragonwell11/pull/

weixlu commented 3 months ago

IOPrioritySizePolicyEdenScale is used in calculate: eden size = survivor size * IOPrioritySizePolicyEdenScale Here survivor size is a float, so no matter IOPrioritySizePolicyEdenScale is float or uint, it will eventually be transformed to float