/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*
*/
#include "precompiled.hpp"
#include "memory/universe.hpp"
#include "oops/oop.inline.hpp"
#include "runtime/arguments.hpp"
#ifdef TARGET_ARCH_x86
# include "vm_version_x86.hpp"
#endif
#ifdef TARGET_ARCH_sparc
# include "vm_version_sparc.hpp"
#endif
#ifdef TARGET_ARCH_zero
# include "vm_version_zero.hpp"
#endif
#ifdef TARGET_ARCH_arm
# include "vm_version_arm.hpp"
#endif
#ifdef TARGET_ARCH_ppc
# include "vm_version_ppc.hpp"
#endif
const char* Abstract_VM_Version::_s_internal_vm_info_string = Abstract_VM_Version::internal_vm_info_string();
#ifndef HOTSPOT_RELEASE_VERSION
#endif
#ifndef JRE_RELEASE_VERSION
#endif
#ifndef HOTSPOT_BUILD_TARGET
#endif
#ifdef PRODUCT
#else
#endif
// HOTSPOT_RELEASE_VERSION must follow the release version naming convention
// <major_ver>.<minor_ver>-b<nn>[-<identifier>][-<debug_target>]
if (_initialized) {
return;
}
// Expecting the next vm_version format:
// <major_ver>.<minor_ver>-b<nn>[-<identifier>]
vm_minor_ver += 1;
assert(vm_build_num != NULL && vm_build_num[1] == 'b' && isdigit(vm_build_num[2]),"wrong vm build number");
vm_build_num += 2;
_initialized = true;
}
#if defined(_LP64)
#else
#endif
#ifdef TIERED
#else // TIERED
#ifdef ZERO
#ifdef SHARK
#else // SHARK
#endif // SHARK
#else // ZERO
COMPILER2_PRESENT("Server")
#endif // ZERO
#endif // TIERED
#ifndef HOTSPOT_VM_DISTRO
#endif
return VMNAME;
}
#ifdef VENDOR
#else
return JDK_Version::is_gte_jdk17x_version() ?
"Oracle Corporation" : "Sun Microsystems Inc.";
#endif
}
};
return "";
}
// NOTE: do *not* use stringStream. this function is called by
// fatal error handler. if the crash is in native thread,
// stringStream cannot get resource allocated and will SEGV.
return VM_RELEASE;
}
// NOTE: do *not* use stringStream. this function is called by
// fatal error handlers. if the crash is in native thread,
// stringStream cannot get resource allocated and will SEGV.
return JRE_RELEASE_VERSION;
}
WINDOWS_ONLY("windows") \
SOLARIS_ONLY("solaris") \
BSD_ONLY("bsd")
#ifdef ZERO
#else
IA64_ONLY("ia64") \
AMD64_ONLY("amd64") \
ARM_ONLY("arm") \
PPC_ONLY("ppc") \
SPARC_ONLY("sparc")
#endif // ZERO
}
#ifndef HOTSPOT_BUILD_USER
#endif
#ifndef HOTSPOT_BUILD_COMPILER
#ifdef _MSC_VER
#if _MSC_VER == 1100
#define HOTSPOT_BUILD_COMPILER "MS VC++ 6.0"
#define HOTSPOT_BUILD_COMPILER "MS VC++ 7.1 (VS2003)"
#define HOTSPOT_BUILD_COMPILER "MS VC++ 8.0 (VS2005)"
#define HOTSPOT_BUILD_COMPILER "MS VC++ 9.0 (VS2008)"
#else
#endif
#elif defined(__SUNPRO_CC)
#if __SUNPRO_CC == 0x420
#define HOTSPOT_BUILD_COMPILER "Workshop 4.2"
#define HOTSPOT_BUILD_COMPILER "Workshop 5.8"
#define HOTSPOT_BUILD_COMPILER "Workshop 5.9"
#define HOTSPOT_BUILD_COMPILER "Sun Studio 12u1"
#else
#endif
#else
#define HOTSPOT_BUILD_COMPILER "unknown compiler"
#endif
#endif
#ifndef FLOAT_ARCH
#if defined(__SOFTFP__)
#define FLOAT_ARCH_STR "-e500v2"
#define FLOAT_ARCH_STR "-vfp"
#define FLOAT_ARCH_STR "-hflt"
#else
#define FLOAT_ARCH_STR ""
#endif
#else
#endif
}
return HOTSPOT_BUILD_USER;
}
}
void VM_Version_init() {
VM_Version::initialize();
#ifndef PRODUCT
if (PrintMiscellaneous && Verbose) {
}
#endif
}
unsigned int num,
unsigned int den,
unsigned int switch_pt) {
if (FLAG_IS_DEFAULT(ParallelGCThreads)) {
// For very large machines, there are diminishing returns
// for large numbers of worker threads. Instead of
// hogging the whole system, use a fraction of the workers for every
// processor after the first 8. For example, on a 72 cpu machine
// and a chosen fraction of 5/8
// use 8 + (72 - 8) * (5/8) == 48 worker threads.
ncpus :
} else {
return ParallelGCThreads;
}
}
}
// Does not set the _initialized flag since it is
// a global flag.
if (FLAG_IS_DEFAULT(ParallelGCThreads)) {
} else {
}
}
return _parallel_worker_threads;
}