mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 23:34:52 +02:00
8147442: Event-based tracing to allow for tracing Klass creation
Reviewed-by: jbachorik, egahlin
This commit is contained in:
parent
1593edaf59
commit
64f55fb267
2 changed files with 6 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -29,6 +29,7 @@
|
||||||
#include "classfile/klassFactory.hpp"
|
#include "classfile/klassFactory.hpp"
|
||||||
#include "memory/resourceArea.hpp"
|
#include "memory/resourceArea.hpp"
|
||||||
#include "prims/jvmtiEnvBase.hpp"
|
#include "prims/jvmtiEnvBase.hpp"
|
||||||
|
#include "trace/traceMacros.hpp"
|
||||||
|
|
||||||
static ClassFileStream* prologue(ClassFileStream* stream,
|
static ClassFileStream* prologue(ClassFileStream* stream,
|
||||||
Symbol* name,
|
Symbol* name,
|
||||||
|
@ -136,5 +137,7 @@ instanceKlassHandle KlassFactory::create_from_stream(ClassFileStream* stream,
|
||||||
result->set_cached_class_file(cached_class_file);
|
result->set_cached_class_file(cached_class_file);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TRACE_KLASS_CREATION(result, parser, THREAD);
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -29,6 +29,7 @@ typedef u8 traceid;
|
||||||
|
|
||||||
#define EVENT_THREAD_EXIT(thread)
|
#define EVENT_THREAD_EXIT(thread)
|
||||||
#define EVENT_THREAD_DESTRUCT(thread)
|
#define EVENT_THREAD_DESTRUCT(thread)
|
||||||
|
#define TRACE_KLASS_CREATION(k, p, t)
|
||||||
|
|
||||||
#define TRACE_INIT_KLASS_ID(k)
|
#define TRACE_INIT_KLASS_ID(k)
|
||||||
#define TRACE_INIT_THREAD_ID(td)
|
#define TRACE_INIT_THREAD_ID(td)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue