equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2014, 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. |
40 #include "runtime/vm_operations.hpp" |
40 #include "runtime/vm_operations.hpp" |
41 #include "trace/tracing.hpp" |
41 #include "trace/tracing.hpp" |
42 #include "utilities/events.hpp" |
42 #include "utilities/events.hpp" |
43 #include "utilities/ticks.inline.hpp" |
43 #include "utilities/ticks.inline.hpp" |
44 #include "utilities/xmlstream.hpp" |
44 #include "utilities/xmlstream.hpp" |
|
45 |
|
46 PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC |
45 |
47 |
46 #ifdef ASSERT |
48 #ifdef ASSERT |
47 |
49 |
48 #define SWEEP(nm) record_sweep(nm, __LINE__) |
50 #define SWEEP(nm) record_sweep(nm, __LINE__) |
49 // Sweeper logging code |
51 // Sweeper logging code |
625 va_list ap; |
627 va_list ap; |
626 va_start(ap, format); |
628 va_start(ap, format); |
627 tty->vprint(format, ap); |
629 tty->vprint(format, ap); |
628 va_end(ap); |
630 va_end(ap); |
629 } |
631 } |
630 tty->print_cr(s.as_string()); |
632 tty->print_cr("%s", s.as_string()); |
631 } |
633 } |
632 |
634 |
633 if (LogCompilation && (xtty != NULL)) { |
635 if (LogCompilation && (xtty != NULL)) { |
634 stringStream s; |
636 stringStream s; |
635 // Dump code cache state into a buffer before locking the tty, |
637 // Dump code cache state into a buffer before locking the tty, |
642 va_list ap; |
644 va_list ap; |
643 va_start(ap, format); |
645 va_start(ap, format); |
644 xtty->vprint(format, ap); |
646 xtty->vprint(format, ap); |
645 va_end(ap); |
647 va_end(ap); |
646 } |
648 } |
647 xtty->print(s.as_string()); |
649 xtty->print("%s", s.as_string()); |
648 xtty->stamp(); |
650 xtty->stamp(); |
649 xtty->end_elem(); |
651 xtty->end_elem(); |
650 } |
652 } |
651 } |
653 } |
652 |
654 |