Skip to content

Commit 9d10a8e

Browse files
author
Nathan Ricci
committed
Account for bytes in tlab when a thread detaches.
1 parent da17231 commit 9d10a8e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/mono/mono/metadata/sgen-mono.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2216,7 +2216,7 @@ sgen_client_thread_detach_with_lock (SgenThreadInfo *p)
22162216

22172217
mono_tls_set_sgen_thread_info (NULL);
22182218

2219-
sgen_increment_bytes_allocated_detached (p->total_bytes_allocated);
2219+
sgen_increment_bytes_allocated_detached (p->total_bytes_allocated + (p->tlab_next - p->tlab_start));
22202220

22212221
tid = mono_thread_info_get_tid (p);
22222222

0 commit comments

Comments
 (0)