src/cpu/sparc/vm/macroAssembler_sparc.cpp

changeset 8944
072770c9a6b9
parent 8940
eb9e617d6f64
child 8997
f8a45a60bc6b
     1.1 --- a/src/cpu/sparc/vm/macroAssembler_sparc.cpp	Wed Sep 07 16:43:32 2016 -0400
     1.2 +++ b/src/cpu/sparc/vm/macroAssembler_sparc.cpp	Fri Oct 21 20:34:04 2016 +0300
     1.3 @@ -4261,6 +4261,7 @@
     1.4    assert(UseBlockZeroing && VM_Version::has_block_zeroing(), "only works with BIS zeroing");
     1.5    Register end = count;
     1.6    int cache_line_size = VM_Version::prefetch_data_size();
     1.7 +  assert(cache_line_size > 0, "cache line size should be known for this code");
     1.8    // Minimum count when BIS zeroing can be used since
     1.9    // it needs membar which is expensive.
    1.10    int block_zero_size  = MAX2(cache_line_size*3, (int)BlockZeroingLowLimit);

mercurial