45 /** 46 * Non-heap memory type. 47 * <p> 48 * The Java virtual machine manages memory other than the heap 49 * (referred as <i>non-heap memory</i>). The non-heap memory includes 50 * the <i>method area</i> and memory required for the internal 51 * processing or optimization for the Java virtual machine. 52 * It stores per-class structures such as a runtime 53 * constant pool, field and method data, and the code for 54 * methods and constructors. 55 */ 56 NON_HEAP("Non-heap memory"); 57 58 private final String description; 59 60 private MemoryType(String s) { 61 this.description = s; 62 } 63 64 /** 65 * Returns the string representation of this <tt>MemoryType</tt>. 66 * @return the string representation of this <tt>MemoryType</tt>. 67 */ 68 public String toString() { 69 return description; 70 } 71 72 private static final long serialVersionUID = 6992337162326171013L; 73 } | 45 /** 46 * Non-heap memory type. 47 * <p> 48 * The Java virtual machine manages memory other than the heap 49 * (referred as <i>non-heap memory</i>). The non-heap memory includes 50 * the <i>method area</i> and memory required for the internal 51 * processing or optimization for the Java virtual machine. 52 * It stores per-class structures such as a runtime 53 * constant pool, field and method data, and the code for 54 * methods and constructors. 55 */ 56 NON_HEAP("Non-heap memory"); 57 58 private final String description; 59 60 private MemoryType(String s) { 61 this.description = s; 62 } 63 64 /** 65 * Returns the string representation of this {@code MemoryType}. 66 * @return the string representation of this {@code MemoryType}. 67 */ 68 public String toString() { 69 return description; 70 } 71 72 private static final long serialVersionUID = 6992337162326171013L; 73 } |