7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #include "precompiled.hpp"
26 #include "classfile/systemDictionary.hpp"
27 #include "gc_implementation/shared/gcHeapSummary.hpp"
28 #include "gc_implementation/shared/gcTrace.hpp"
29 #include "gc_implementation/shared/gcTraceTime.hpp"
30 #include "gc_implementation/shared/gcWhen.hpp"
31 #include "gc_implementation/shared/vmGCOperations.hpp"
32 #include "gc_interface/allocTracer.hpp"
33 #include "gc_interface/collectedHeap.hpp"
34 #include "gc_interface/collectedHeap.inline.hpp"
35 #include "memory/barrierSet.inline.hpp"
36 #include "memory/metaspace.hpp"
37 #include "oops/oop.inline.hpp"
38 #include "oops/instanceMirrorKlass.hpp"
39 #include "runtime/init.hpp"
40 #include "runtime/thread.inline.hpp"
41 #include "services/heapDumper.hpp"
42
43
44 #ifdef ASSERT
45 int CollectedHeap::_fire_out_of_memory_count = 0;
46 #endif
47
48 size_t CollectedHeap::_filler_array_max_size = 0;
49
50 template <>
51 void EventLogBase<GCMessage>::print(outputStream* st, GCMessage& m) {
52 st->print_cr("GC heap %s", m.is_before ? "before" : "after");
53 st->print_raw(m);
54 }
55
56 void GCHeapLog::log_heap(bool before) {
57 if (!should_log()) {
58 return;
|
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #include "precompiled.hpp"
26 #include "classfile/systemDictionary.hpp"
27 #include "gc/shared/allocTracer.hpp"
28 #include "gc/shared/barrierSet.inline.hpp"
29 #include "gc/shared/collectedHeap.hpp"
30 #include "gc/shared/collectedHeap.inline.hpp"
31 #include "gc/shared/gcHeapSummary.hpp"
32 #include "gc/shared/gcTrace.hpp"
33 #include "gc/shared/gcTraceTime.hpp"
34 #include "gc/shared/gcWhen.hpp"
35 #include "gc/shared/vmGCOperations.hpp"
36 #include "memory/metaspace.hpp"
37 #include "oops/instanceMirrorKlass.hpp"
38 #include "oops/oop.inline.hpp"
39 #include "runtime/init.hpp"
40 #include "runtime/thread.inline.hpp"
41 #include "services/heapDumper.hpp"
42
43
44 #ifdef ASSERT
45 int CollectedHeap::_fire_out_of_memory_count = 0;
46 #endif
47
48 size_t CollectedHeap::_filler_array_max_size = 0;
49
50 template <>
51 void EventLogBase<GCMessage>::print(outputStream* st, GCMessage& m) {
52 st->print_cr("GC heap %s", m.is_before ? "before" : "after");
53 st->print_raw(m);
54 }
55
56 void GCHeapLog::log_heap(bool before) {
57 if (!should_log()) {
58 return;
|