go/src/cmd/cgo
Ian Lance Taylor 645ea53019 runtime: in asan mode call __lsan_do_leak_check when exiting
This enables the ASAN default behavior of reporting C memory leaks.
It can be disabled with ASAN_OPTIONS=detect_leaks=0.

Fixes #67833

Change-Id: I420da1b5d79cf70d8cf134eaf97bf0a22f61ffd0
Cq-Include-Trybots: luci.golang.try:gotip-linux-amd64-asan-clang15,gotip-linux-arm64-asan-clang15
Reviewed-on: https://go-review.googlesource.com/c/go/+/651755
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2025-03-05 18:23:46 -08:00
..
internal runtime: in asan mode call __lsan_do_leak_check when exiting 2025-03-05 18:23:46 -08:00
ast.go cmd/cgo,cmd/go: preallocate slices if they have known fixed capacities 2024-10-14 15:47:06 +00:00
ast_go1.go cmd/cgo: walk {FuncType,TypeSpec}.TypeParams fields 2022-11-30 21:45:10 +00:00
ast_go118.go cmd/cgo: walk {FuncType,TypeSpec}.TypeParams fields 2022-11-30 21:45:10 +00:00
doc.go cmd/cgo: use full prototype for main in C code 2024-12-11 15:57:34 -08:00
gcc.go cmd/cgo: improve error message for unknown name 2024-11-20 22:16:58 +00:00
godefs.go cmd/cgo: don't force rewritten code onto a single line 2024-05-20 15:50:06 +00:00
main.go cmd: use cmd/internal/hash.New32 and Sum32 only 2025-02-13 12:34:30 -08:00
out.go cmd/cgo: update generated headers for compatibility with latest MSVC C++ standards 2025-02-28 08:48:12 -08:00
util.go cmd/cgo: use slices.Index 2024-09-05 18:54:24 +00:00