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. |
38 #include "runtime/vm_operations.hpp" |
38 #include "runtime/vm_operations.hpp" |
39 #include "trace/tracing.hpp" |
39 #include "trace/tracing.hpp" |
40 #include "utilities/events.hpp" |
40 #include "utilities/events.hpp" |
41 #include "utilities/ticks.inline.hpp" |
41 #include "utilities/ticks.inline.hpp" |
42 #include "utilities/xmlstream.hpp" |
42 #include "utilities/xmlstream.hpp" |
|
43 |
|
44 PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC |
43 |
45 |
44 #ifdef ASSERT |
46 #ifdef ASSERT |
45 |
47 |
46 #define SWEEP(nm) record_sweep(nm, __LINE__) |
48 #define SWEEP(nm) record_sweep(nm, __LINE__) |
47 // Sweeper logging code |
49 // Sweeper logging code |
623 va_list ap; |
625 va_list ap; |
624 va_start(ap, format); |
626 va_start(ap, format); |
625 tty->vprint(format, ap); |
627 tty->vprint(format, ap); |
626 va_end(ap); |
628 va_end(ap); |
627 } |
629 } |
628 tty->print_cr(s.as_string()); |
630 tty->print_cr("%s", s.as_string()); |
629 } |
631 } |
630 |
632 |
631 if (LogCompilation && (xtty != NULL)) { |
633 if (LogCompilation && (xtty != NULL)) { |
632 stringStream s; |
634 stringStream s; |
633 // Dump code cache state into a buffer before locking the tty, |
635 // Dump code cache state into a buffer before locking the tty, |