8076161: Runtime stub for throw_null_pointer_exception always constructs log messages
A LogEvents filter has been added to avoid unnecessary string construction. Reviewed-by: coleenp, hseigel, dholmes
This commit is contained in:
parent
f286447281
commit
d796407e50
@ -160,9 +160,11 @@ void Exceptions::_throw(Thread* thread, const char* file, int line, Handle h_exc
|
|||||||
thread->set_pending_exception(h_exception(), file, line);
|
thread->set_pending_exception(h_exception(), file, line);
|
||||||
|
|
||||||
// vm log
|
// vm log
|
||||||
Events::log_exception(thread, "Exception <%s%s%s> (" INTPTR_FORMAT ") thrown at [%s, line %d]",
|
if (LogEvents){
|
||||||
h_exception->print_value_string(), message ? ": " : "", message ? message : "",
|
Events::log_exception(thread, "Exception <%s%s%s> (" INTPTR_FORMAT ") thrown at [%s, line %d]",
|
||||||
(address)h_exception(), file, line);
|
h_exception->print_value_string(), message ? ": " : "", message ? message : "",
|
||||||
|
(address)h_exception(), file, line);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user