Example #1
0
 /**
  * Zero a region of memory
  *
  * @param start The start of the region to be zeroed (must be 4-byte aligned)
  * @param bytes The number of bytes to be zeroed (must be 4-byte aligned)
  */
 public static void zero(Address start, Extent bytes) throws InlinePragma {
   if (Assert.VERIFY_ASSERTIONS) {
     assertAligned(start);
     assertAligned(bytes);
   }
   if (bytes.GT(Extent.fromIntZeroExtend(SMALL_REGION_THRESHOLD)))
     org.mmtk.vm.Memory.zero(start, bytes);
   else zeroSmall(start, bytes);
 }