On 12/16/2016 04:11 PM, Zhengyu Gu wrote: > http://cr.openjdk.java.net/~zgu/shenandoah/large_alloc/webrev.01/ Yup. Why not the usual macro? align_size_up(word_size * HeapWordSize, ShenandoahHeapRegion::RegionSizeBytes) Thanks, -Aleksey