mirror of
https://github.com/golang/go
synced 2024-11-26 07:07:57 -07:00
runtime, cmd/gc: clean up function protoypes
R=golang-dev, r CC=golang-dev https://golang.org/cl/8652043
This commit is contained in:
parent
8b85a3d480
commit
2dc751ac21
@ -1026,7 +1026,8 @@ dalgsym(Type *t)
|
||||
}
|
||||
|
||||
static int
|
||||
gcinline(Type *t) {
|
||||
gcinline(Type *t)
|
||||
{
|
||||
switch(t->etype) {
|
||||
case TARRAY:
|
||||
if(t->bound == 1)
|
||||
|
@ -301,13 +301,15 @@ runtime·RaceReleaseMerge(void *addr)
|
||||
}
|
||||
|
||||
// func RaceSemacquire(s *uint32)
|
||||
void runtime·RaceSemacquire(uint32 *s)
|
||||
void
|
||||
runtime·RaceSemacquire(uint32 *s)
|
||||
{
|
||||
runtime·semacquire(s);
|
||||
}
|
||||
|
||||
// func RaceSemrelease(s *uint32)
|
||||
void runtime·RaceSemrelease(uint32 *s)
|
||||
void
|
||||
runtime·RaceSemrelease(uint32 *s)
|
||||
{
|
||||
runtime·semrelease(s);
|
||||
}
|
||||
@ -329,13 +331,15 @@ runtime·RaceWrite(void *addr)
|
||||
}
|
||||
|
||||
// func RaceDisable()
|
||||
void runtime·RaceDisable(void)
|
||||
void
|
||||
runtime·RaceDisable(void)
|
||||
{
|
||||
g->raceignore++;
|
||||
}
|
||||
|
||||
// func RaceEnable()
|
||||
void runtime·RaceEnable(void)
|
||||
void
|
||||
runtime·RaceEnable(void)
|
||||
{
|
||||
g->raceignore--;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user