diff options
| author | Keith Randall <khr@golang.org> | 2014-05-31 19:21:17 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2014-05-31 19:21:17 -0400 |
| commit | 548b15def6c22741d1c22fe911ff23c0b224fb88 (patch) | |
| tree | caeb1eb04a4dd322173ae19deb01c560301a7f65 /src/pkg/runtime/proc.c | |
| parent | 14d2ee1d00b4fcaef569a84cb84888603405ca31 (diff) | |
| download | go-548b15def6c22741d1c22fe911ff23c0b224fb88.tar.xz | |
runtime: mark some C globals as having no pointers.
C globals are conservatively scanned. This helps
avoid false retention, especially for 32 bit.
LGTM=rsc
R=golang-codereviews, khr, rsc
CC=golang-codereviews
https://golang.org/cl/102040043
Diffstat (limited to 'src/pkg/runtime/proc.c')
| -rw-r--r-- | src/pkg/runtime/proc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pkg/runtime/proc.c b/src/pkg/runtime/proc.c index 665d34a40e..da2e0f9fa4 100644 --- a/src/pkg/runtime/proc.c +++ b/src/pkg/runtime/proc.c @@ -2597,6 +2597,7 @@ struct Pdesc uint32 syscalltick; int64 syscallwhen; }; +#pragma dataflag NOPTR static Pdesc pdesc[MaxGomaxprocs]; static uint32 |
