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. |
95 #include "opto/compile.hpp" |
95 #include "opto/compile.hpp" |
96 #include "opto/indexSet.hpp" |
96 #include "opto/indexSet.hpp" |
97 #include "opto/runtime.hpp" |
97 #include "opto/runtime.hpp" |
98 #endif |
98 #endif |
99 |
99 |
|
100 PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC |
100 |
101 |
101 GrowableArray<Method*>* collected_profiled_methods; |
102 GrowableArray<Method*>* collected_profiled_methods; |
102 |
103 |
103 int compare_methods(Method** a, Method** b) { |
104 int compare_methods(Method** a, Method** b) { |
104 // %%% there can be 32-bit overflow here |
105 // %%% there can be 32-bit overflow here |
364 if (PrintNMTStatistics) { |
365 if (PrintNMTStatistics) { |
365 if (MemTracker::is_on()) { |
366 if (MemTracker::is_on()) { |
366 BaselineTTYOutputer outputer(tty); |
367 BaselineTTYOutputer outputer(tty); |
367 MemTracker::print_memory_usage(outputer, K, false); |
368 MemTracker::print_memory_usage(outputer, K, false); |
368 } else { |
369 } else { |
369 tty->print_cr(MemTracker::reason()); |
370 tty->print_cr("%s", MemTracker::reason()); |
370 } |
371 } |
371 } |
372 } |
372 } |
373 } |
373 |
374 |
374 #else // PRODUCT MODE STATISTICS |
375 #else // PRODUCT MODE STATISTICS |
405 if (PrintNMTStatistics) { |
406 if (PrintNMTStatistics) { |
406 if (MemTracker::is_on()) { |
407 if (MemTracker::is_on()) { |
407 BaselineTTYOutputer outputer(tty); |
408 BaselineTTYOutputer outputer(tty); |
408 MemTracker::print_memory_usage(outputer, K, false); |
409 MemTracker::print_memory_usage(outputer, K, false); |
409 } else { |
410 } else { |
410 tty->print_cr(MemTracker::reason()); |
411 tty->print_cr("%s", MemTracker::reason()); |
411 } |
412 } |
412 } |
413 } |
413 } |
414 } |
414 |
415 |
415 #endif |
416 #endif |