RFR (S) 8222186: Shenandoah should not uncommit below minimum heap size

Zhengyu Gu zgu at redhat.com
Tue Apr 9 14:12:39 UTC 2019



On 4/9/19 10:07 AM, Aleksey Shipilev wrote:
> On 4/9/19 4:06 PM, Zhengyu Gu wrote:
>> ShenandoahHeap.hpp L#200 : indents
> 
> These are indented to align "size_t" with optional "volatile":
> 
>   199 private:
>   200            size_t _initial_size;
>   201            size_t _minimum_size;
>   202   DEFINE_PAD_MINUS_SIZE(0, DEFAULT_CACHE_LINE_SIZE, sizeof(volatile size_t));
>   203   volatile size_t _used;
>   204   volatile size_t _committed;
>   205   volatile size_t _bytes_allocated_since_gc_start;
>   206   DEFINE_PAD_MINUS_SIZE(1, DEFAULT_CACHE_LINE_SIZE, 0);
> 

Okay. Seems we don't do that elsewhere. Your choice.

-Zhengyu

> -Aleksey
> 



More information about the hotspot-gc-dev mailing list