mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 09:34:38 +02:00
8210857: Allow retiring TLABs and collecting statistics in parallel
Reviewed-by: sjohanss, eosterlund
This commit is contained in:
parent
92575fc3f0
commit
c0d0cbc4f1
5 changed files with 236 additions and 283 deletions
|
@ -1989,7 +1989,7 @@ void JavaThread::exit(bool destroy_vm, ExitType exit_type) {
|
|||
remove_stack_guard_pages();
|
||||
|
||||
if (UseTLAB) {
|
||||
tlab().make_parsable(true); // retire TLAB
|
||||
tlab().retire();
|
||||
}
|
||||
|
||||
if (JvmtiEnv::environments_might_exist()) {
|
||||
|
@ -2045,7 +2045,7 @@ void JavaThread::cleanup_failed_attach_current_thread() {
|
|||
remove_stack_guard_pages();
|
||||
|
||||
if (UseTLAB) {
|
||||
tlab().make_parsable(true); // retire TLAB, if any
|
||||
tlab().retire();
|
||||
}
|
||||
|
||||
BarrierSet::barrier_set()->on_thread_detach(this);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue