mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8005849: JEP 167: Event-Based JVM Tracing
Co-authored-by: Karen Kinnear <karen.kinnear@oracle.com> Co-authored-by: Bengt Rutisson <bengt.rutisson@oracle.com> Co-authored-by: Calvin Cheung <calvin.cheung@oracle.com> Co-authored-by: Erik Gahlin <erik.gahlin@oracle.com> Co-authored-by: Erik Helin <erik.helin@oracle.com> Co-authored-by: Jesper Wilhelmsson <jesper.wilhelmsson@oracle.com> Co-authored-by: Keith McGuigan <keith.mcguigan@oracle.com> Co-authored-by: Mattias Tobiasson <mattias.tobiasson@oracle.com> Co-authored-by: Markus Gronlund <markus.gronlund@oracle.com> Co-authored-by: Mikael Auno <mikael.auno@oracle.com> Co-authored-by: Nils Eliasson <nils.eliasson@oracle.com> Co-authored-by: Nils Loodin <nils.loodin@oracle.com> Co-authored-by: Rickard Backman <rickard.backman@oracle.com> Co-authored-by: Stefan Karlsson <stefan.karlsson@oracle.com> Co-authored-by: Yekaterina Kantserova <yekaterina.kantserova@oracle.com> Reviewed-by: acorn, coleenp, sla
This commit is contained in:
parent
6b2c468c35
commit
718f3252f6
195 changed files with 7628 additions and 1484 deletions
|
@ -265,8 +265,7 @@ static void signal_thread_entry(JavaThread* thread, TRAPS) {
|
|||
VMThread::execute(&op1);
|
||||
Universe::print_heap_at_SIGBREAK();
|
||||
if (PrintClassHistogram) {
|
||||
VM_GC_HeapInspection op1(gclog_or_tty, true /* force full GC before heap inspection */,
|
||||
true /* need_prologue */);
|
||||
VM_GC_HeapInspection op1(gclog_or_tty, true /* force full GC before heap inspection */);
|
||||
VMThread::execute(&op1);
|
||||
}
|
||||
if (JvmtiExport::should_post_data_dump()) {
|
||||
|
@ -1444,11 +1443,16 @@ int os::get_line_chars(int fd, char* buf, const size_t bsize){
|
|||
return (int) i;
|
||||
}
|
||||
|
||||
void os::SuspendedThreadTask::run() {
|
||||
assert(Threads_lock->owned_by_self() || (_thread == VMThread::vm_thread()), "must have threads lock to call this");
|
||||
internal_do_task();
|
||||
_done = true;
|
||||
}
|
||||
|
||||
bool os::create_stack_guard_pages(char* addr, size_t bytes) {
|
||||
return os::pd_create_stack_guard_pages(addr, bytes);
|
||||
}
|
||||
|
||||
|
||||
char* os::reserve_memory(size_t bytes, char* addr, size_t alignment_hint) {
|
||||
char* result = pd_reserve_memory(bytes, addr, alignment_hint);
|
||||
if (result != NULL) {
|
||||
|
@ -1551,3 +1555,19 @@ void os::realign_memory(char *addr, size_t bytes, size_t alignment_hint) {
|
|||
pd_realign_memory(addr, bytes, alignment_hint);
|
||||
}
|
||||
|
||||
#ifndef TARGET_OS_FAMILY_windows
|
||||
/* try to switch state from state "from" to state "to"
|
||||
* returns the state set after the method is complete
|
||||
*/
|
||||
os::SuspendResume::State os::SuspendResume::switch_state(os::SuspendResume::State from,
|
||||
os::SuspendResume::State to)
|
||||
{
|
||||
os::SuspendResume::State result =
|
||||
(os::SuspendResume::State) Atomic::cmpxchg((jint) to, (jint *) &_state, (jint) from);
|
||||
if (result == from) {
|
||||
// success
|
||||
return to;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue