Descriptionruntime: adjust malloc race instrumentation for tiny allocs
Tiny alloc memory block is shared by different goroutines running on the same thread.
We call racemalloc after enabling preemption in mallocgc,
as the result another goroutine can act on not yet race-cleared tiny block.
Call racemalloc before enabling preemption.
Fixes issue 7224.
Patch Set 1 #Patch Set 2 : diff -r 09a55add2bb5 https://dvyukov%40google.com@code.google.com/p/go/ #Patch Set 3 : diff -r 09a55add2bb5 https://dvyukov%40google.com@code.google.com/p/go/ #Patch Set 4 : diff -r 09a55add2bb5 https://dvyukov%40google.com@code.google.com/p/go/ #Patch Set 5 : diff -r 09a55add2bb5 https://dvyukov%40google.com@code.google.com/p/go/ #Patch Set 6 : diff -r 09a55add2bb5 https://dvyukov%40google.com@code.google.com/p/go/ #MessagesTotal messages: 4
|