Navigation Menu

Skip to content

Commit

Permalink
runtime: mark functions as static where possible
Browse files Browse the repository at this point in the history
Update #8092

LGTM=dvyukov
R=golang-codereviews, minux, dvyukov
CC=golang-codereviews
https://golang.org/cl/122250043
  • Loading branch information
mdempsky authored and dvyukov committed Aug 8, 2014
1 parent d6d7170 commit 28cf62e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/pkg/runtime/cpuprof.goc
Expand Up @@ -314,7 +314,7 @@ flushlog(Profile *p)

// getprofile blocks until the next block of profiling data is available
// and returns it as a []byte. It is called from the writing goroutine.
Slice
static Slice
getprofile(Profile *p)
{
uint32 i, j, n;
Expand Down
2 changes: 1 addition & 1 deletion src/pkg/runtime/mheap.c
Expand Up @@ -211,7 +211,7 @@ mheap_alloc(MHeap *h, uintptr npage, int32 sizeclass, bool large)
return s;
}

void
static void
mheap_alloc_m(G *gp)
{
MHeap *h;
Expand Down
2 changes: 1 addition & 1 deletion src/pkg/runtime/proc.c
Expand Up @@ -1384,7 +1384,7 @@ schedule(void)
// appropriate time. After calling dropg and arranging for gp to be
// readied later, the caller can do other work but eventually should
// call schedule to restart the scheduling of goroutines on this m.
void
static void
dropg(void)
{
if(g->m->lockedg == nil) {
Expand Down

0 comments on commit 28cf62e

Please sign in to comment.