Mercurial > hg > truffle
comparison src/share/vm/runtime/deoptimization.cpp @ 12316:190899198332
7195622: CheckUnhandledOops has limited usefulness now
Summary: Enable CHECK_UNHANDLED_OOPS in fastdebug builds across all supported platforms.
Reviewed-by: coleenp, hseigel, dholmes, stefank, twisti, ihse, rdurbin
Contributed-by: lois.foltan@oracle.com
author | hseigel |
---|---|
date | Thu, 26 Sep 2013 10:25:02 -0400 |
parents | 01b268b3080a |
children | cefad50507d8 b9b6934ad75c 2b8e28fdf503 |
comparison
equal
deleted
inserted
replaced
12315:c1fbf21c7397 | 12316:190899198332 |
---|---|
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) { |