< prev index next > src/hotspot/share/jfr/support/jfrThreadLocal.cpp
Print this page
/*
! * Copyright (c) 2012, 2018, 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.
/*
! * Copyright (c) 2012, 2019, 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.
}
if (tl->has_java_event_writer()) {
assert(t->is_Java_thread(), "invariant");
JfrJavaSupport::destroy_global_jni_handle(tl->java_event_writer());
}
! if (tl->_stackframes != NULL) {
- FREE_C_HEAP_ARRAY(JfrStackFrame, tl->_stackframes);
- }
tl->_dead = true;
}
void JfrThreadLocal::on_exit(Thread* t) {
assert(t != NULL, "invariant");
}
if (tl->has_java_event_writer()) {
assert(t->is_Java_thread(), "invariant");
JfrJavaSupport::destroy_global_jni_handle(tl->java_event_writer());
}
! FREE_C_HEAP_ARRAY(JfrStackFrame, tl->_stackframes);
tl->_dead = true;
}
void JfrThreadLocal::on_exit(Thread* t) {
assert(t != NULL, "invariant");
< prev index next >