Mercurial > hg > graal-jvmci-8
comparison src/share/vm/gc_implementation/parNew/parOopClosures.inline.hpp @ 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 | da91efe96a93 |
children | 78bbf4d43a14 |
comparison
equal
deleted
inserted
replaced
12315:c1fbf21c7397 | 12316:190899198332 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2007, 2012, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2007, 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. |
82 tty->print_cr("Scanning field (" PTR_FORMAT ") twice?", p); | 82 tty->print_cr("Scanning field (" PTR_FORMAT ") twice?", p); |
83 GenCollectedHeap* gch = (GenCollectedHeap*)Universe::heap(); | 83 GenCollectedHeap* gch = (GenCollectedHeap*)Universe::heap(); |
84 Space* sp = gch->space_containing(p); | 84 Space* sp = gch->space_containing(p); |
85 oop obj = oop(sp->block_start(p)); | 85 oop obj = oop(sp->block_start(p)); |
86 assert((HeapWord*)obj < (HeapWord*)p, "Error"); | 86 assert((HeapWord*)obj < (HeapWord*)p, "Error"); |
87 tty->print_cr("Object: " PTR_FORMAT, obj); | 87 tty->print_cr("Object: " PTR_FORMAT, (void *)obj); |
88 tty->print_cr("-------"); | 88 tty->print_cr("-------"); |
89 obj->print(); | 89 obj->print(); |
90 tty->print_cr("-----"); | 90 tty->print_cr("-----"); |
91 tty->print_cr("Heap:"); | 91 tty->print_cr("Heap:"); |
92 tty->print_cr("-----"); | 92 tty->print_cr("-----"); |
108 oopDesc::encode_store_heap_oop_not_null(p, new_obj); | 108 oopDesc::encode_store_heap_oop_not_null(p, new_obj); |
109 #ifndef PRODUCT | 109 #ifndef PRODUCT |
110 if (TraceScavenge) { | 110 if (TraceScavenge) { |
111 gclog_or_tty->print_cr("{%s %s ( " PTR_FORMAT " ) " PTR_FORMAT " -> " PTR_FORMAT " (%d)}", | 111 gclog_or_tty->print_cr("{%s %s ( " PTR_FORMAT " ) " PTR_FORMAT " -> " PTR_FORMAT " (%d)}", |
112 "forwarded ", | 112 "forwarded ", |
113 new_obj->klass()->internal_name(), p, obj, new_obj, new_obj->size()); | 113 new_obj->klass()->internal_name(), p, (void *)obj, (void *)new_obj, new_obj->size()); |
114 } | 114 } |
115 #endif | 115 #endif |
116 | 116 |
117 } else { | 117 } else { |
118 size_t obj_sz = obj->size_given_klass(objK); | 118 size_t obj_sz = obj->size_given_klass(objK); |