mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 19:44:41 +02:00
8037816: Fix for 8036122 breaks build with Xcode5/clang
Repaired or selectively disabled offending formats; future-proofed with additional checking Reviewed-by: kvn, jrose, stefank
This commit is contained in:
parent
563feb9091
commit
305ec3bd3f
293 changed files with 1285 additions and 913 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -56,6 +56,8 @@
|
|||
#include "services/threadService.hpp"
|
||||
#include "utilities/macros.hpp"
|
||||
|
||||
PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC
|
||||
|
||||
PerfVariable* Management::_begin_vm_creation_time = NULL;
|
||||
PerfVariable* Management::_end_vm_creation_time = NULL;
|
||||
PerfVariable* Management::_vm_init_done_time = NULL;
|
||||
|
@ -1839,12 +1841,12 @@ JVM_ENTRY(void, jmm_SetVMGlobal(JNIEnv *env, jstring flag_name, jvalue new_value
|
|||
uintx uvalue = (uintx)new_value.j;
|
||||
|
||||
if (strncmp(name, "MaxHeapFreeRatio", 17) == 0) {
|
||||
FormatBuffer<80> err_msg("");
|
||||
FormatBuffer<80> err_msg("%s", "");
|
||||
if (!Arguments::verify_MaxHeapFreeRatio(err_msg, uvalue)) {
|
||||
THROW_MSG(vmSymbols::java_lang_IllegalArgumentException(), err_msg.buffer());
|
||||
}
|
||||
} else if (strncmp(name, "MinHeapFreeRatio", 17) == 0) {
|
||||
FormatBuffer<80> err_msg("");
|
||||
FormatBuffer<80> err_msg("%s", "");
|
||||
if (!Arguments::verify_MinHeapFreeRatio(err_msg, uvalue)) {
|
||||
THROW_MSG(vmSymbols::java_lang_IllegalArgumentException(), err_msg.buffer());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue