Exemple #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);
 }
Exemple #2
0
 /**
  * Zero a page-aligned region of memory
  *
  * @param start The start of the region to be zeroed (must be page aligned)
  * @param bytes The number of bytes to be zeroed (must be page aligned)
  */
 public static void zeroPages(Address start, int bytes) throws InlinePragma {
   org.mmtk.vm.Memory.zeroPages(start, bytes);
 }
Exemple #3
0
 /**
  * Dump the contents of memory around a given address
  *
  * @param addr The address around which the memory should be dumped
  * @param beforeBytes The number of bytes before the address to be included in the dump
  * @param afterBytes The number of bytes after the address to be included in the dump
  */
 public static void dumpMemory(Address addr, int beforeBytes, int afterBytes) {
   org.mmtk.vm.Memory.dumpMemory(addr, beforeBytes, afterBytes);
 }