1 /*
2 * Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
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
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
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 #include "precompiled.hpp"
25
26 #include "runtime/mutex.hpp"
27 #include "services/memBaseline.hpp"
28 #include "services/memReporter.hpp"
29 #include "services/mallocTracker.inline.hpp"
30 #include "services/memTracker.hpp"
31 #include "utilities/defaultStream.hpp"
32
33 #ifdef SOLARIS
34 volatile bool NMT_stack_walkable = false;
35 #else
36 volatile bool NMT_stack_walkable = true;
37 #endif
38
39 volatile NMT_TrackingLevel MemTracker::_tracking_level = NMT_unknown;
40 NMT_TrackingLevel MemTracker::_cmdline_tracking_level = NMT_unknown;
41
42 MemBaseline MemTracker::_baseline;
43 Mutex* MemTracker::_query_lock = NULL;
44 bool MemTracker::_is_nmt_env_valid = true;
45
|
1 /*
2 * Copyright (c) 2012, 2017, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
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
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
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 #include "precompiled.hpp"
25
26 #include "prims/jvm.h"
27 #include "runtime/mutex.hpp"
28 #include "services/memBaseline.hpp"
29 #include "services/memReporter.hpp"
30 #include "services/mallocTracker.inline.hpp"
31 #include "services/memTracker.hpp"
32 #include "utilities/defaultStream.hpp"
33
34 #ifdef SOLARIS
35 volatile bool NMT_stack_walkable = false;
36 #else
37 volatile bool NMT_stack_walkable = true;
38 #endif
39
40 volatile NMT_TrackingLevel MemTracker::_tracking_level = NMT_unknown;
41 NMT_TrackingLevel MemTracker::_cmdline_tracking_level = NMT_unknown;
42
43 MemBaseline MemTracker::_baseline;
44 Mutex* MemTracker::_query_lock = NULL;
45 bool MemTracker::_is_nmt_env_valid = true;
46
|