hotspot/src/share/vm/services/management.cpp
changeset 24424 2658d7834c6e
parent 24351 61b33cc6d3cf
child 25057 f38210f84f8c
equal deleted inserted replaced
24358:8528b67f6562 24424:2658d7834c6e
     1 /*
     1 /*
     2  * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2003, 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.
    54 #include "services/memoryService.hpp"
    54 #include "services/memoryService.hpp"
    55 #include "services/runtimeService.hpp"
    55 #include "services/runtimeService.hpp"
    56 #include "services/threadService.hpp"
    56 #include "services/threadService.hpp"
    57 #include "utilities/macros.hpp"
    57 #include "utilities/macros.hpp"
    58 
    58 
       
    59 PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC
       
    60 
    59 PerfVariable* Management::_begin_vm_creation_time = NULL;
    61 PerfVariable* Management::_begin_vm_creation_time = NULL;
    60 PerfVariable* Management::_end_vm_creation_time = NULL;
    62 PerfVariable* Management::_end_vm_creation_time = NULL;
    61 PerfVariable* Management::_vm_init_done_time = NULL;
    63 PerfVariable* Management::_vm_init_done_time = NULL;
    62 
    64 
    63 Klass* Management::_sensor_klass = NULL;
    65 Klass* Management::_sensor_klass = NULL;
  1837     succeed = CommandLineFlags::intxAtPut(name, &ivalue, Flag::MANAGEMENT);
  1839     succeed = CommandLineFlags::intxAtPut(name, &ivalue, Flag::MANAGEMENT);
  1838   } else if (flag->is_uintx()) {
  1840   } else if (flag->is_uintx()) {
  1839     uintx uvalue = (uintx)new_value.j;
  1841     uintx uvalue = (uintx)new_value.j;
  1840 
  1842 
  1841     if (strncmp(name, "MaxHeapFreeRatio", 17) == 0) {
  1843     if (strncmp(name, "MaxHeapFreeRatio", 17) == 0) {
  1842       FormatBuffer<80> err_msg("");
  1844       FormatBuffer<80> err_msg("%s", "");
  1843       if (!Arguments::verify_MaxHeapFreeRatio(err_msg, uvalue)) {
  1845       if (!Arguments::verify_MaxHeapFreeRatio(err_msg, uvalue)) {
  1844         THROW_MSG(vmSymbols::java_lang_IllegalArgumentException(), err_msg.buffer());
  1846         THROW_MSG(vmSymbols::java_lang_IllegalArgumentException(), err_msg.buffer());
  1845       }
  1847       }
  1846     } else if (strncmp(name, "MinHeapFreeRatio", 17) == 0) {
  1848     } else if (strncmp(name, "MinHeapFreeRatio", 17) == 0) {
  1847       FormatBuffer<80> err_msg("");
  1849       FormatBuffer<80> err_msg("%s", "");
  1848       if (!Arguments::verify_MinHeapFreeRatio(err_msg, uvalue)) {
  1850       if (!Arguments::verify_MinHeapFreeRatio(err_msg, uvalue)) {
  1849         THROW_MSG(vmSymbols::java_lang_IllegalArgumentException(), err_msg.buffer());
  1851         THROW_MSG(vmSymbols::java_lang_IllegalArgumentException(), err_msg.buffer());
  1850       }
  1852       }
  1851     }
  1853     }
  1852     succeed = CommandLineFlags::uintxAtPut(name, &uvalue, Flag::MANAGEMENT);
  1854     succeed = CommandLineFlags::uintxAtPut(name, &uvalue, Flag::MANAGEMENT);