equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2012, 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. |
126 #endif |
126 #endif |
127 |
127 |
128 // native memory tracking has to be on |
128 // native memory tracking has to be on |
129 if (!MemTracker::is_on() || MemTracker::shutdown_in_progress()) { |
129 if (!MemTracker::is_on() || MemTracker::shutdown_in_progress()) { |
130 // if it is not on, what's the reason? |
130 // if it is not on, what's the reason? |
131 output()->print_cr(MemTracker::reason()); |
131 output()->print_cr("%s", MemTracker::reason()); |
132 return; |
132 return; |
133 } |
133 } |
134 |
134 |
135 if (_summary.value()) { |
135 if (_summary.value()) { |
136 BaselineTTYOutputer outputer(output()); |
136 BaselineTTYOutputer outputer(output()); |