mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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
This commit is contained in:
parent
14d2ee1d00
commit
548b15def6
11 changed files with 16 additions and 0 deletions
|
|
@ -167,6 +167,7 @@ runtime·osinit(void)
|
|||
void
|
||||
runtime·get_random_data(byte **rnd, int32 *rnd_len)
|
||||
{
|
||||
#pragma dataflag NOPTR
|
||||
static byte urandom_data[HashRandomBytes];
|
||||
int32 fd;
|
||||
fd = runtime·open("/dev/urandom", 0 /* O_RDONLY */, 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue