Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/mobile
Path: blob/master/src/hotspot/share/runtime/flags/debug_globals.hpp
40957 views
1
/*
2
* Copyright (c) 2021, 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
25
#ifndef SHARE_RUNTIME_DEBUG_GLOBALS_HPP
26
#define SHARE_RUNTIME_DEBUG_GLOBALS_HPP
27
28
#include "runtime/globals_shared.hpp"
29
#include "utilities/macros.hpp"
30
31
//
32
// These flags are needed for testing the implementation of various flag access
33
// APIs.
34
//
35
// For example, DummyManageableStringFlag is needed because we don't
36
// have any MANAGEABLE flags of the ccstr type, but we really need to
37
// make sure the implementation is correct (in terms of memory allocation)
38
// just in case someone may add such a flag in the future.
39
//
40
41
#ifndef ASSERT
42
43
#define DEBUG_RUNTIME_FLAGS(develop, \
44
develop_pd, \
45
product, \
46
product_pd, \
47
notproduct, \
48
range, \
49
constraint) \
50
\
51
52
#else
53
54
#define DEBUG_RUNTIME_FLAGS(develop, \
55
develop_pd, \
56
product, \
57
product_pd, \
58
notproduct, \
59
range, \
60
constraint) \
61
\
62
product(ccstr, DummyManageableStringFlag, NULL, MANAGEABLE, \
63
"Dummy flag for testing string handling in WriteableFlags") \
64
\
65
66
// end of DEBUG_RUNTIME_FLAGS
67
68
#endif // ASSERT
69
70
DECLARE_FLAGS(DEBUG_RUNTIME_FLAGS)
71
72
#endif // SHARE_RUNTIME_DEBUG_GLOBALS_HPP
73
74