< prev index next >

src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/memory/Universe.java

Print this page

 97   public CollectedHeap heap() {
 98     return (CollectedHeap) heapConstructor.instantiateWrapperFor(collectedHeapField.getValue());
 99   }
100 
101 
102   /** Returns "TRUE" iff "p" points into the allocated area of the heap. */
103   public boolean isIn(Address p) {
104     return heap().isIn(p);
105   }
106 
107   /** Returns "TRUE" iff "p" points into the reserved area of the heap. */
108   public boolean isInReserved(Address p) {
109     return heap().isInReserved(p);
110   }
111 
112   public void print() { printOn(System.out); }
113   public void printOn(PrintStream tty) {
114     heap().printOn(tty);
115   }
116 
117   // Check whether an element of a typeArrayOop with the given type must be
118   // aligned 0 mod 8.  The typeArrayOop itself must be aligned at least this
119   // strongly.
120   public static boolean elementTypeShouldBeAligned(BasicType type) {
121     return type == BasicType.T_DOUBLE || type == BasicType.T_LONG;
122   }
123 
124   // Check whether an object field (static/non-static) of the given type must be
125   // aligned 0 mod 8.
126   public static boolean fieldTypeShouldBeAligned(BasicType type) {
127     return type == BasicType.T_DOUBLE || type == BasicType.T_LONG;
128   }
129 }

 97   public CollectedHeap heap() {
 98     return (CollectedHeap) heapConstructor.instantiateWrapperFor(collectedHeapField.getValue());
 99   }
100 
101 
102   /** Returns "TRUE" iff "p" points into the allocated area of the heap. */
103   public boolean isIn(Address p) {
104     return heap().isIn(p);
105   }
106 
107   /** Returns "TRUE" iff "p" points into the reserved area of the heap. */
108   public boolean isInReserved(Address p) {
109     return heap().isInReserved(p);
110   }
111 
112   public void print() { printOn(System.out); }
113   public void printOn(PrintStream tty) {
114     heap().printOn(tty);
115   }
116 







117   // Check whether an object field (static/non-static) of the given type must be
118   // aligned 0 mod 8.
119   public static boolean fieldTypeShouldBeAligned(BasicType type) {
120     return type == BasicType.T_DOUBLE || type == BasicType.T_LONG;
121   }
122 }
< prev index next >