1 // Copyright 2015 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
7 // The memory profiler can call copy from a slice on the system stack,
8 // which msan used to think meant a reference to uninitialized memory.
14 extern void Nop(char*);
16 // Use weak as a hack to permit defining a function even though we use export.
17 void poison() __attribute__ ((weak));
33 runtime
.MemProfileRate
= 1
43 // We won't actually wait for this sleep to complete.
44 go func() { C
.sleep(1) }()