equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2001, 2014, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2001, 2015, 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. |
30 #include "gc_implementation/shared/gcWhen.hpp" |
30 #include "gc_implementation/shared/gcWhen.hpp" |
31 #include "gc_implementation/shared/vmGCOperations.hpp" |
31 #include "gc_implementation/shared/vmGCOperations.hpp" |
32 #include "gc_interface/allocTracer.hpp" |
32 #include "gc_interface/allocTracer.hpp" |
33 #include "gc_interface/collectedHeap.hpp" |
33 #include "gc_interface/collectedHeap.hpp" |
34 #include "gc_interface/collectedHeap.inline.hpp" |
34 #include "gc_interface/collectedHeap.inline.hpp" |
|
35 #include "memory/barrierSet.inline.hpp" |
35 #include "memory/metaspace.hpp" |
36 #include "memory/metaspace.hpp" |
36 #include "oops/oop.inline.hpp" |
37 #include "oops/oop.inline.hpp" |
37 #include "oops/instanceMirrorKlass.hpp" |
38 #include "oops/instanceMirrorKlass.hpp" |
38 #include "runtime/init.hpp" |
39 #include "runtime/init.hpp" |
39 #include "runtime/thread.inline.hpp" |
40 #include "runtime/thread.inline.hpp" |
120 Universe::print_heap_after_gc(); |
121 Universe::print_heap_after_gc(); |
121 } |
122 } |
122 if (_gc_heap_log != NULL) { |
123 if (_gc_heap_log != NULL) { |
123 _gc_heap_log->log_heap_after(); |
124 _gc_heap_log->log_heap_after(); |
124 } |
125 } |
|
126 } |
|
127 |
|
128 void CollectedHeap::print_on_error(outputStream* st) const { |
|
129 st->print_cr("Heap:"); |
|
130 print_extended_on(st); |
|
131 st->cr(); |
|
132 |
|
133 _barrier_set->print_on(st); |
125 } |
134 } |
126 |
135 |
127 void CollectedHeap::register_nmethod(nmethod* nm) { |
136 void CollectedHeap::register_nmethod(nmethod* nm) { |
128 assert_locked_or_safepoint(CodeCache_lock); |
137 assert_locked_or_safepoint(CodeCache_lock); |
129 } |
138 } |