mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8214976: Warn about uses of functions replaced for portability
Reviewed-by: dholmes, tschatzl, coleenp
This commit is contained in:
parent
024a240e1b
commit
04f02ac6b2
11 changed files with 153 additions and 27 deletions
|
@ -39,6 +39,7 @@
|
|||
#include "runtime/deoptimization.hpp"
|
||||
#include "runtime/jniHandles.inline.hpp"
|
||||
#include "runtime/javaCalls.hpp"
|
||||
#include "runtime/os.hpp"
|
||||
#include "jvmci/jniAccessMark.inline.hpp"
|
||||
#include "jvmci/jvmciCompiler.hpp"
|
||||
#include "jvmci/jvmciRuntime.hpp"
|
||||
|
@ -730,8 +731,7 @@ void JVMCIEnv::fthrow_error(const char* file, int line, const char* format, ...)
|
|||
va_list ap;
|
||||
va_start(ap, format);
|
||||
char msg[max_msg_size];
|
||||
vsnprintf(msg, max_msg_size, format, ap);
|
||||
msg[max_msg_size-1] = '\0';
|
||||
os::vsnprintf(msg, max_msg_size, format, ap);
|
||||
va_end(ap);
|
||||
JavaThread* THREAD = JavaThread::current();
|
||||
if (is_hotspot()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue