mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8143226: Minor updates to Event Based tracing
Reviewed-by: jbachorik, egahlin
This commit is contained in:
parent
12d9b13eee
commit
0e44e963d2
34 changed files with 211 additions and 321 deletions
|
@ -51,9 +51,14 @@
|
|||
#include "services/heapDumper.hpp"
|
||||
#include "utilities/defaultStream.hpp"
|
||||
#include "utilities/events.hpp"
|
||||
#include "utilities/macros.hpp"
|
||||
#include "utilities/top.hpp"
|
||||
#include "utilities/vmError.hpp"
|
||||
|
||||
#if INCLUDE_TRACE
|
||||
#include "trace/tracing.hpp"
|
||||
#endif
|
||||
|
||||
#ifndef ASSERT
|
||||
# ifdef _DEBUG
|
||||
// NOTE: don't turn the lines below into a comment -- if you're getting
|
||||
|
@ -280,6 +285,12 @@ void report_out_of_shared_space(SharedSpaceType shared_space) {
|
|||
exit(2);
|
||||
}
|
||||
|
||||
static void notify_tracing() {
|
||||
#if INCLUDE_TRACE
|
||||
Tracing::on_vm_error(true);
|
||||
#endif
|
||||
}
|
||||
|
||||
void report_insufficient_metaspace(size_t required_size) {
|
||||
warning("\nThe MaxMetaspaceSize of " SIZE_FORMAT " bytes is not large enough.\n"
|
||||
"Either don't specify the -XX:MaxMetaspaceSize=<size>\n"
|
||||
|
@ -302,6 +313,8 @@ void report_java_out_of_memory(const char* message) {
|
|||
HeapDumper::dump_heap_from_oome();
|
||||
}
|
||||
|
||||
notify_tracing();
|
||||
|
||||
if (OnOutOfMemoryError && OnOutOfMemoryError[0]) {
|
||||
VMError::report_java_out_of_memory(message);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue