equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
232 assert(result == NULL || result->is_oop(), "must be oop"); |
232 assert(result == NULL || result->is_oop(), "must be oop"); |
233 return_value = Handle(thread, result); |
233 return_value = Handle(thread, result); |
234 assert(Universe::heap()->is_in_or_null(result), "must be heap pointer"); |
234 assert(Universe::heap()->is_in_or_null(result), "must be heap pointer"); |
235 if (TraceDeoptimization) { |
235 if (TraceDeoptimization) { |
236 ttyLocker ttyl; |
236 ttyLocker ttyl; |
237 tty->print_cr("SAVED OOP RESULT " INTPTR_FORMAT " in thread " INTPTR_FORMAT, result, thread); |
237 tty->print_cr("SAVED OOP RESULT " INTPTR_FORMAT " in thread " INTPTR_FORMAT, (void *)result, thread); |
238 } |
238 } |
239 } |
239 } |
240 bool reallocated = false; |
240 bool reallocated = false; |
241 if (objects != NULL) { |
241 if (objects != NULL) { |
242 JRT_BLOCK |
242 JRT_BLOCK |
276 if (mi->eliminated()) { |
276 if (mi->eliminated()) { |
277 if (first) { |
277 if (first) { |
278 first = false; |
278 first = false; |
279 tty->print_cr("RELOCK OBJECTS in thread " INTPTR_FORMAT, thread); |
279 tty->print_cr("RELOCK OBJECTS in thread " INTPTR_FORMAT, thread); |
280 } |
280 } |
281 tty->print_cr(" object <" INTPTR_FORMAT "> locked", mi->owner()); |
281 tty->print_cr(" object <" INTPTR_FORMAT "> locked", (void *)mi->owner()); |
282 } |
282 } |
283 } |
283 } |
284 } |
284 } |
285 #endif |
285 #endif |
286 } |
286 } |
975 for (int i = 0; i < objects->length(); i++) { |
975 for (int i = 0; i < objects->length(); i++) { |
976 ObjectValue* sv = (ObjectValue*) objects->at(i); |
976 ObjectValue* sv = (ObjectValue*) objects->at(i); |
977 KlassHandle k(java_lang_Class::as_Klass(sv->klass()->as_ConstantOopReadValue()->value()())); |
977 KlassHandle k(java_lang_Class::as_Klass(sv->klass()->as_ConstantOopReadValue()->value()())); |
978 Handle obj = sv->value(); |
978 Handle obj = sv->value(); |
979 |
979 |
980 tty->print(" object <" INTPTR_FORMAT "> of type ", sv->value()()); |
980 tty->print(" object <" INTPTR_FORMAT "> of type ", (void *)sv->value()()); |
981 k->print_value(); |
981 k->print_value(); |
982 tty->print(" allocated (%d bytes)", obj->size() * HeapWordSize); |
982 tty->print(" allocated (%d bytes)", obj->size() * HeapWordSize); |
983 tty->cr(); |
983 tty->cr(); |
984 |
984 |
985 if (Verbose) { |
985 if (Verbose) { |