1
0
mirror of https://github.com/golang/go synced 2024-10-04 11:11:21 -06:00
go/src/runtime/race
Dmitry Vyukov d73ca5f4d8 runtime/race: fix memory leak
The leak was reported internally on a sever canary that runs for days.
After a day server consumes 5.6GB, after 6 days -- 12.2GB.
The leak is exposed by the added benchmark.
The leak is fixed upstream in :
http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/rtl/tsan_rtl_thread.cc?view=diff&r1=276102&r2=276103&pathrev=276103

Fixes #16441

Change-Id: I9d4f0adef48ca6cf2cd781b9a6990ad4661ba49b
Reviewed-on: https://go-review.googlesource.com/25091
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Run-TryBot: Dmitry Vyukov <dvyukov@google.com>
2016-07-20 14:17:44 +00:00
..
testdata runtime/race: deflake test 2016-05-09 14:50:18 +00:00
doc.go
output_test.go runtime: per-P contexts for race detector 2016-05-03 11:00:43 +00:00
race_darwin_amd64.syso runtime/race: fix memory leak 2016-07-20 14:17:44 +00:00
race_freebsd_amd64.syso runtime/race: fix memory leak 2016-07-20 14:17:44 +00:00
race_linux_amd64.syso runtime/race: fix memory leak 2016-07-20 14:17:44 +00:00
race_linux_test.go runtime: fix race atomic operations on external memory 2016-06-29 15:30:54 +00:00
race_test.go runtime/race: fix memory leak 2016-07-20 14:17:44 +00:00
race_unix_test.go
race_windows_amd64.syso runtime/race: fix memory leak 2016-07-20 14:17:44 +00:00
race_windows_test.go runtime: fix race atomic operations on external memory 2016-06-29 15:30:54 +00:00
race.go
README runtime/race: fix memory leak 2016-07-20 14:17:44 +00:00
sched_test.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00

runtime/race package contains the data race detector runtime library.
It is based on ThreadSanitizer race detector, that is currently a part of
the LLVM project (http://llvm.org/git/compiler-rt.git).

To update the .syso files use golang.org/x/build/cmd/racebuild.

Current runtime is built on rev e35e7c00b5c7e7ee5e24d537b80cb0d34cebb038.