src/share/vm/utilities/exceptions.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File
*** old/src/share/vm/utilities/exceptions.cpp	Tue Apr 29 16:57:24 2014
--- new/src/share/vm/utilities/exceptions.cpp	Tue Apr 29 16:57:23 2014

*** 1,7 **** --- 1,7 ---- /* ! * Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved. ! * Copyright (c) 1998, 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 33,42 **** --- 33,43 ---- #include "runtime/thread.inline.hpp" #include "runtime/threadCritical.hpp" #include "utilities/events.hpp" #include "utilities/exceptions.hpp" + PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC // Implementation of ThreadShadow void check_ThreadShadow() { const ByteSize offset1 = byte_offset_of(ThreadShadow, _pending_exception); const ByteSize offset2 = Thread::pending_exception_offset();
*** 224,243 **** --- 225,248 ---- exception = Handle(THREAD, THREAD->pending_exception()); } _throw(THREAD, file, line, exception); } + PRAGMA_DIAG_PUSH + PRAGMA_FORMAT_NONLITERAL_IGNORED void Exceptions::fthrow(Thread* thread, const char* file, int line, Symbol* h_name, const char* format, ...) { const int max_msg_size = 1024; 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'; va_end(ap); _throw_msg(thread, file, line, h_name, msg); } + PRAGMA_DIAG_POP + // Creates an exception oop, calls the <init> method with the given signature. // and returns a Handle Handle Exceptions::new_exception(Thread *thread, Symbol* name, Symbol* signature, JavaCallArguments *args,

src/share/vm/utilities/exceptions.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File