예제 #1
0
 static {
   // determine how much physical RAM this machine has
   final long physMemoryBytes = MemoryUtils.getPhysicalMemory();
   PHYS_MEMORY = physMemoryBytes < 0 ? -1 : (int) (physMemoryBytes >> 20);
 }