mirror of
https://github.com/golang/go
synced 2024-11-20 01:14:40 -07:00
runtime: mark race instrumentation callbacks as nosplitstack
It speedups the race detector somewhat, but also prevents getcallerpc() from obtaining lessstack(). R=golang-dev, iant CC=golang-dev https://golang.org/cl/6812091
This commit is contained in:
parent
fb9706d3be
commit
0ead18c59e
@ -47,6 +47,8 @@ runtime·racefini(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Called from instrumented code.
|
// Called from instrumented code.
|
||||||
|
// If we split stack, getcallerpc() can return runtime·lessstack().
|
||||||
|
#pragma textflag 7
|
||||||
void
|
void
|
||||||
runtime·racewrite(uintptr addr)
|
runtime·racewrite(uintptr addr)
|
||||||
{
|
{
|
||||||
@ -58,6 +60,8 @@ runtime·racewrite(uintptr addr)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Called from instrumented code.
|
// Called from instrumented code.
|
||||||
|
// If we split stack, getcallerpc() can return runtime·lessstack().
|
||||||
|
#pragma textflag 7
|
||||||
void
|
void
|
||||||
runtime·raceread(uintptr addr)
|
runtime·raceread(uintptr addr)
|
||||||
{
|
{
|
||||||
@ -69,6 +73,7 @@ runtime·raceread(uintptr addr)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Called from instrumented code.
|
// Called from instrumented code.
|
||||||
|
#pragma textflag 7
|
||||||
void
|
void
|
||||||
runtime·racefuncenter(uintptr pc)
|
runtime·racefuncenter(uintptr pc)
|
||||||
{
|
{
|
||||||
@ -83,6 +88,7 @@ runtime·racefuncenter(uintptr pc)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Called from instrumented code.
|
// Called from instrumented code.
|
||||||
|
#pragma textflag 7
|
||||||
void
|
void
|
||||||
runtime·racefuncexit(void)
|
runtime·racefuncexit(void)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user