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 #include "incls/_precompiled.incl" 26 #include "incls/_arguments.cpp.incl" 27 28 #define DEFAULT_VENDOR_URL_BUG "http://java.sun.com/webapps/bugreport/crash.jsp" 29 #define DEFAULT_JAVA_LAUNCHER "generic" 30 31 char** Arguments::_jvm_flags_array = NULL; 32 int Arguments::_num_jvm_flags = 0; 33 char** Arguments::_jvm_args_array = NULL; 34 int Arguments::_num_jvm_args = 0; 35 char* Arguments::_java_command = NULL; 36 SystemProperty* Arguments::_system_properties = NULL; 37 const char* Arguments::_gc_log_filename = NULL; 38 bool Arguments::_has_profile = false; 39 bool Arguments::_has_alloc_profile = false; 40 uintx Arguments::_min_heap_size = 0; 41 Arguments::Mode Arguments::_mode = _mixed; 42 bool Arguments::_java_compiler = false; 43 bool Arguments::_xdebug_mode = false; 44 const char* Arguments::_java_vendor_url_bug = DEFAULT_VENDOR_URL_BUG; 45 const char* Arguments::_sun_java_launcher = DEFAULT_JAVA_LAUNCHER; 46 int Arguments::_sun_java_launcher_pid = -1; | 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 #include "precompiled.hpp" 26 #include "classfile/javaAssertions.hpp" 27 #include "compiler/compilerOracle.hpp" 28 #include "memory/allocation.inline.hpp" 29 #include "memory/cardTableRS.hpp" 30 #include "memory/referenceProcessor.hpp" 31 #include "memory/universe.inline.hpp" 32 #include "oops/oop.inline.hpp" 33 #include "prims/jvmtiExport.hpp" 34 #include "runtime/arguments.hpp" 35 #include "runtime/globals_extension.hpp" 36 #include "runtime/java.hpp" 37 #include "services/management.hpp" 38 #include "utilities/defaultStream.hpp" 39 #include "utilities/taskqueue.hpp" 40 #ifdef TARGET_ARCH_x86 41 # include "vm_version_x86.hpp" 42 #endif 43 #ifdef TARGET_ARCH_sparc 44 # include "vm_version_sparc.hpp" 45 #endif 46 #ifdef TARGET_ARCH_zero 47 # include "vm_version_zero.hpp" 48 #endif 49 #ifdef TARGET_OS_FAMILY_linux 50 # include "os_linux.inline.hpp" 51 #endif 52 #ifdef TARGET_OS_FAMILY_solaris 53 # include "os_solaris.inline.hpp" 54 #endif 55 #ifdef TARGET_OS_FAMILY_windows 56 # include "os_windows.inline.hpp" 57 #endif 58 #ifndef SERIALGC 59 #include "gc_implementation/concurrentMarkSweep/compactibleFreeListSpace.hpp" 60 #endif 61 62 #define DEFAULT_VENDOR_URL_BUG "http://java.sun.com/webapps/bugreport/crash.jsp" 63 #define DEFAULT_JAVA_LAUNCHER "generic" 64 65 char** Arguments::_jvm_flags_array = NULL; 66 int Arguments::_num_jvm_flags = 0; 67 char** Arguments::_jvm_args_array = NULL; 68 int Arguments::_num_jvm_args = 0; 69 char* Arguments::_java_command = NULL; 70 SystemProperty* Arguments::_system_properties = NULL; 71 const char* Arguments::_gc_log_filename = NULL; 72 bool Arguments::_has_profile = false; 73 bool Arguments::_has_alloc_profile = false; 74 uintx Arguments::_min_heap_size = 0; 75 Arguments::Mode Arguments::_mode = _mixed; 76 bool Arguments::_java_compiler = false; 77 bool Arguments::_xdebug_mode = false; 78 const char* Arguments::_java_vendor_url_bug = DEFAULT_VENDOR_URL_BUG; 79 const char* Arguments::_sun_java_launcher = DEFAULT_JAVA_LAUNCHER; 80 int Arguments::_sun_java_launcher_pid = -1; |