< prev index next >

src/hotspot/share/runtime/flags/jvmFlagWriteableList.cpp

Print this page




   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 #include "precompiled.hpp"
  26 #include "gc/shared/plab.hpp"
  27 #include "runtime/flags/jvmFlagWriteableList.hpp"
  28 #include "runtime/os.hpp"
  29 #ifdef COMPILER1
  30 #include "c1/c1_globals.hpp"
  31 #endif // COMPILER1
  32 #ifdef COMPILER2
  33 #include "opto/c2_globals.hpp"
  34 #endif // COMPILER2
  35 #if INCLUDE_JVMCI
  36 #include "jvmci/jvmci_globals.hpp"
  37 #endif
  38 
  39 bool JVMFlagWriteable::is_writeable(void) {
  40   return _writeable;
  41 }
  42 
  43 void JVMFlagWriteable::mark_once(void) {
  44   if (_type == Once) {
  45     _writeable = false;
  46   }




   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 #include "precompiled.hpp"

  26 #include "runtime/flags/jvmFlagWriteableList.hpp"
  27 #include "runtime/os.hpp"
  28 #ifdef COMPILER1
  29 #include "c1/c1_globals.hpp"
  30 #endif // COMPILER1
  31 #ifdef COMPILER2
  32 #include "opto/c2_globals.hpp"
  33 #endif // COMPILER2
  34 #if INCLUDE_JVMCI
  35 #include "jvmci/jvmci_globals.hpp"
  36 #endif
  37 
  38 bool JVMFlagWriteable::is_writeable(void) {
  39   return _writeable;
  40 }
  41 
  42 void JVMFlagWriteable::mark_once(void) {
  43   if (_type == Once) {
  44     _writeable = false;
  45   }


< prev index next >