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/vmGCOperations.hpp"
28 #include "gc_interface/collectedHeap.hpp"
29 #include "gc_interface/collectedHeap.inline.hpp"
30 #include "oops/oop.inline.hpp"
31 #include "oops/instanceMirrorKlass.hpp"
32 #include "runtime/init.hpp"
33 #include "services/heapDumper.hpp"
34 #ifdef TARGET_OS_FAMILY_linux
35 # include "thread_linux.inline.hpp"
36 #endif
37 #ifdef TARGET_OS_FAMILY_solaris
38 # include "thread_solaris.inline.hpp"
39 #endif
40 #ifdef TARGET_OS_FAMILY_windows
41 # include "thread_windows.inline.hpp"
42 #endif
43 #ifdef TARGET_OS_FAMILY_bsd
44 # include "thread_bsd.inline.hpp"
45 #endif
46
47
48 #ifdef ASSERT
49 int CollectedHeap::_fire_out_of_memory_count = 0;
50 #endif
51
52 size_t CollectedHeap::_filler_array_max_size = 0;
53
54 template <>
55 void EventLogBase<GCMessage>::print(outputStream* st, GCMessage& m) {
56 st->print_cr("GC heap %s", m.is_before ? "before" : "after");
57 st->print_raw(m);
58 }
59
60 void GCHeapLog::log_heap(bool before) {
61 if (!should_log()) {
62 return;
63 }
64
65 double timestamp = fetch_timestamp();
|
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/vmGCOperations.hpp"
28 #include "gc_interface/collectedHeap.hpp"
29 #include "gc_interface/collectedHeap.inline.hpp"
30 #include "oops/oop.inline.hpp"
31 #include "oops/instanceMirrorKlass.hpp"
32 #include "runtime/init.hpp"
33 #include "runtime/thread.inline.hpp"
34 #include "services/heapDumper.hpp"
35
36
37 #ifdef ASSERT
38 int CollectedHeap::_fire_out_of_memory_count = 0;
39 #endif
40
41 size_t CollectedHeap::_filler_array_max_size = 0;
42
43 template <>
44 void EventLogBase<GCMessage>::print(outputStream* st, GCMessage& m) {
45 st->print_cr("GC heap %s", m.is_before ? "before" : "after");
46 st->print_raw(m);
47 }
48
49 void GCHeapLog::log_heap(bool before) {
50 if (!should_log()) {
51 return;
52 }
53
54 double timestamp = fetch_timestamp();
|