Commit 28cf62ed authored by Matthew Dempsky's avatar Matthew Dempsky Committed by Dmitriy Vyukov

runtime: mark functions as static where possible

Update #8092

LGTM=dvyukov
R=golang-codereviews, minux, dvyukov
CC=golang-codereviews
https://golang.org/cl/122250043
parent d6d7170d
......@@ -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;
......
......@@ -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;
......
......@@ -1384,7 +1384,7 @@ top:
// 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) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment