equal
deleted
inserted
replaced
157 } |
157 } |
158 WB_END |
158 WB_END |
159 |
159 |
160 WB_ENTRY(void, WB_PrintHeapSizes(JNIEnv* env, jobject o)) { |
160 WB_ENTRY(void, WB_PrintHeapSizes(JNIEnv* env, jobject o)) { |
161 CollectorPolicy * p = Universe::heap()->collector_policy(); |
161 CollectorPolicy * p = Universe::heap()->collector_policy(); |
162 gclog_or_tty->print_cr("Minimum heap "SIZE_FORMAT" Initial heap " |
162 gclog_or_tty->print_cr("Minimum heap " SIZE_FORMAT " Initial heap " |
163 SIZE_FORMAT" Maximum heap "SIZE_FORMAT" Space alignment "SIZE_FORMAT" Heap alignment "SIZE_FORMAT, |
163 SIZE_FORMAT " Maximum heap " SIZE_FORMAT " Space alignment " SIZE_FORMAT " Heap alignment " SIZE_FORMAT, |
164 p->min_heap_byte_size(), p->initial_heap_byte_size(), p->max_heap_byte_size(), |
164 p->min_heap_byte_size(), p->initial_heap_byte_size(), p->max_heap_byte_size(), |
165 p->space_alignment(), p->heap_alignment()); |
165 p->space_alignment(), p->heap_alignment()); |
166 } |
166 } |
167 WB_END |
167 WB_END |
168 |
168 |
193 if (!( UseCompressedOops && rhs.base() != NULL && |
193 if (!( UseCompressedOops && rhs.base() != NULL && |
194 Universe::narrow_oop_base() != NULL && |
194 Universe::narrow_oop_base() != NULL && |
195 Universe::narrow_oop_use_implicit_null_checks() )) { |
195 Universe::narrow_oop_use_implicit_null_checks() )) { |
196 tty->print_cr("WB_ReadFromNoaccessArea method is useless:\n " |
196 tty->print_cr("WB_ReadFromNoaccessArea method is useless:\n " |
197 "\tUseCompressedOops is %d\n" |
197 "\tUseCompressedOops is %d\n" |
198 "\trhs.base() is "PTR_FORMAT"\n" |
198 "\trhs.base() is " PTR_FORMAT "\n" |
199 "\tUniverse::narrow_oop_base() is "PTR_FORMAT"\n" |
199 "\tUniverse::narrow_oop_base() is " PTR_FORMAT "\n" |
200 "\tUniverse::narrow_oop_use_implicit_null_checks() is %d", |
200 "\tUniverse::narrow_oop_use_implicit_null_checks() is %d", |
201 UseCompressedOops, |
201 UseCompressedOops, |
202 rhs.base(), |
202 rhs.base(), |
203 Universe::narrow_oop_base(), |
203 Universe::narrow_oop_base(), |
204 Universe::narrow_oop_use_implicit_null_checks()); |
204 Universe::narrow_oop_use_implicit_null_checks()); |
247 return 0; |
247 return 0; |
248 } |
248 } |
249 |
249 |
250 WB_ENTRY(jint, WB_StressVirtualSpaceResize(JNIEnv* env, jobject o, |
250 WB_ENTRY(jint, WB_StressVirtualSpaceResize(JNIEnv* env, jobject o, |
251 jlong reserved_space_size, jlong magnitude, jlong iterations)) |
251 jlong reserved_space_size, jlong magnitude, jlong iterations)) |
252 tty->print_cr("reservedSpaceSize="JLONG_FORMAT", magnitude="JLONG_FORMAT", " |
252 tty->print_cr("reservedSpaceSize=" JLONG_FORMAT ", magnitude=" JLONG_FORMAT ", " |
253 "iterations="JLONG_FORMAT"\n", reserved_space_size, magnitude, |
253 "iterations=" JLONG_FORMAT "\n", reserved_space_size, magnitude, |
254 iterations); |
254 iterations); |
255 if (reserved_space_size < 0 || magnitude < 0 || iterations < 0) { |
255 if (reserved_space_size < 0 || magnitude < 0 || iterations < 0) { |
256 tty->print_cr("One of variables printed above is negative. Can't proceed.\n"); |
256 tty->print_cr("One of variables printed above is negative. Can't proceed.\n"); |
257 return 1; |
257 return 1; |
258 } |
258 } |