8210857: Allow retiring TLABs and collecting statistics in parallel

Reviewed-by: sjohanss, eosterlund
This commit is contained in:
Per Lidén 2018-09-20 14:04:43 +02:00
parent 92575fc3f0
commit c0d0cbc4f1
5 changed files with 236 additions and 283 deletions

View file

@ -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);