comparison src/share/vm/oops/methodData.cpp @ 9765:2461285a2f90

Bugfix.
author Christian Haeubl <haeubl@ssw.jku.at>
date Fri, 17 May 2013 17:43:01 +0200
parents 57e5211846f9
children 836a62f43af9
comparison
equal deleted inserted replaced
9764:51545c49083a 9765:2461285a2f90
166 clear_row(row); 166 clear_row(row);
167 } 167 }
168 } 168 }
169 } 169 }
170 170
171 #ifndef PRODUCT
172 void ReceiverTypeData::print_receiver_data_on(outputStream* st) {
173 uint row;
174 int entries = 0;
175 for (row = 0; row < row_limit(); row++) {
176 if (receiver(row) != NULL) entries++;
177 }
178 st->print_cr("count(%u) entries(%u)", count(), entries);
179 int total = count();
180 for (row = 0; row < row_limit(); row++) {
181 if (receiver(row) != NULL) {
182 total += receiver_count(row);
183 }
184 }
185 for (row = 0; row < row_limit(); row++) {
186 if (receiver(row) != NULL) {
187 tab(st);
188 receiver(row)->print_value_on(st);
189 st->print_cr("(%u %4.2f)", receiver_count(row), (float) receiver_count(row) / (float) total);
190 }
191 }
192 }
193 void ReceiverTypeData::print_data_on(outputStream* st) {
194 print_shared(st, "ReceiverTypeData");
195 print_receiver_data_on(st);
196 }
197 void VirtualCallData::print_data_on(outputStream* st) {
198 print_shared(st, "VirtualCallData");
199 print_receiver_data_on(st);
200 }
201
202 #ifdef GRAAL 171 #ifdef GRAAL
203 void VirtualCallData::clean_weak_klass_links(BoolObjectClosure* is_alive_cl) { 172 void VirtualCallData::clean_weak_klass_links(BoolObjectClosure* is_alive_cl) {
204 ReceiverTypeData::clean_weak_klass_links(is_alive_cl); 173 ReceiverTypeData::clean_weak_klass_links(is_alive_cl);
205 for (uint row = 0; row < method_row_limit(); row++) { 174 for (uint row = 0; row < method_row_limit(); row++) {
206 Method* p = method(row); 175 Method* p = method(row);
208 clear_method_row(row); 177 clear_method_row(row);
209 } 178 }
210 } 179 }
211 } 180 }
212 #endif // GRAAL 181 #endif // GRAAL
182
183 #ifndef PRODUCT
184 void ReceiverTypeData::print_receiver_data_on(outputStream* st) {
185 uint row;
186 int entries = 0;
187 for (row = 0; row < row_limit(); row++) {
188 if (receiver(row) != NULL) entries++;
189 }
190 st->print_cr("count(%u) entries(%u)", count(), entries);
191 int total = count();
192 for (row = 0; row < row_limit(); row++) {
193 if (receiver(row) != NULL) {
194 total += receiver_count(row);
195 }
196 }
197 for (row = 0; row < row_limit(); row++) {
198 if (receiver(row) != NULL) {
199 tab(st);
200 receiver(row)->print_value_on(st);
201 st->print_cr("(%u %4.2f)", receiver_count(row), (float) receiver_count(row) / (float) total);
202 }
203 }
204 }
205 void ReceiverTypeData::print_data_on(outputStream* st) {
206 print_shared(st, "ReceiverTypeData");
207 print_receiver_data_on(st);
208 }
209 void VirtualCallData::print_data_on(outputStream* st) {
210 print_shared(st, "VirtualCallData");
211 print_receiver_data_on(st);
212 }
213 #endif // !PRODUCT 213 #endif // !PRODUCT
214 214
215 // ================================================================== 215 // ==================================================================
216 // RetData 216 // RetData
217 // 217 //