RFR: 8259349: -XX:AvgMonitorsPerThreadEstimate=1 does not work right [v4]

Coleen Phillimore coleenp at openjdk.java.net
Tue Jan 12 00:08:01 UTC 2021


On Fri, 8 Jan 2021 23:18:01 GMT, Daniel D. Daugherty <dcubed at openjdk.org> wrote:

>> In a previous round I changed the assert to:
>> (l_in_use_list_ceiling >= 0, ...```
>> and the Linux build complained about the assert always being true.
>> This is because size_t is unsigned. (No complaint on macOSX.)
>
>> what would happen if this option was set to max_jint? Is it a reasonable max?
> 
> The _in_use_list_ceiling would be set to a very large number and we would
> be allowing a very large number of monitors before a deflation cycle, i.e., we
> would probably never async deflate.

Oh, Ok, on both points.

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

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


More information about the hotspot-runtime-dev mailing list