From 5dab2da9544422d8953b2d3e4a41acaf84a2d2c4 Mon Sep 17 00:00:00 2001 From: Dmitriy Vyukov Date: Tue, 29 Jul 2014 14:45:07 +0400 Subject: [PATCH] runtime: mark global var as NOPTR LGTM=dave R=golang-codereviews, dave CC=golang-codereviews https://golang.org/cl/119300043 --- src/pkg/runtime/sigqueue.goc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/pkg/runtime/sigqueue.goc b/src/pkg/runtime/sigqueue.goc index e08bf98aad..376e77a2e4 100644 --- a/src/pkg/runtime/sigqueue.goc +++ b/src/pkg/runtime/sigqueue.goc @@ -31,10 +31,12 @@ package runtime #include "cgocall.h" #include "../../cmd/ld/textflag.h" +#pragma textflag NOPTR static struct { Note; uint32 mask[(NSIG+31)/32]; uint32 wanted[(NSIG+31)/32]; + uint32 recv[(NSIG+31)/32]; uint32 state; bool inuse; } sig; @@ -83,14 +85,13 @@ runtime·sigsend(int32 s) // Called to receive the next queued signal. // Must only be called from a single goroutine at a time. func signal_recv() (m uint32) { - static uint32 recv[nelem(sig.mask)]; uint32 i, old, new; for(;;) { // Serve from local copy if there are bits left. for(i=0; i