Path: blob/master/src/hotspot/share/runtime/flags/debug_globals.hpp
40957 views
/*1* Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation.7*8* This code is distributed in the hope that it will be useful, but WITHOUT9* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or10* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License11* version 2 for more details (a copy is included in the LICENSE file that12* accompanied this code).13*14* You should have received a copy of the GNU General Public License version15* 2 along with this work; if not, write to the Free Software Foundation,16* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.17*18* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA19* or visit www.oracle.com if you need additional information or have any20* questions.21*22*/2324#ifndef SHARE_RUNTIME_DEBUG_GLOBALS_HPP25#define SHARE_RUNTIME_DEBUG_GLOBALS_HPP2627#include "runtime/globals_shared.hpp"28#include "utilities/macros.hpp"2930//31// These flags are needed for testing the implementation of various flag access32// APIs.33//34// For example, DummyManageableStringFlag is needed because we don't35// have any MANAGEABLE flags of the ccstr type, but we really need to36// make sure the implementation is correct (in terms of memory allocation)37// just in case someone may add such a flag in the future.38//3940#ifndef ASSERT4142#define DEBUG_RUNTIME_FLAGS(develop, \43develop_pd, \44product, \45product_pd, \46notproduct, \47range, \48constraint) \49\5051#else5253#define DEBUG_RUNTIME_FLAGS(develop, \54develop_pd, \55product, \56product_pd, \57notproduct, \58range, \59constraint) \60\61product(ccstr, DummyManageableStringFlag, NULL, MANAGEABLE, \62"Dummy flag for testing string handling in WriteableFlags") \63\6465// end of DEBUG_RUNTIME_FLAGS6667#endif // ASSERT6869DECLARE_FLAGS(DEBUG_RUNTIME_FLAGS)7071#endif // SHARE_RUNTIME_DEBUG_GLOBALS_HPP727374