mirror of
https://github.com/golang/go
synced 2024-11-19 21:34:45 -07:00
runtime: remove unused scheduler knob
Blockingsyscall was used in net package on windows, it's not used anymore. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/12436043
This commit is contained in:
parent
0a904a3f2e
commit
49217cf5fd
@ -98,15 +98,6 @@ static void unwindm(void);
|
|||||||
static void endcgo(void);
|
static void endcgo(void);
|
||||||
static FuncVal endcgoV = { endcgo };
|
static FuncVal endcgoV = { endcgo };
|
||||||
|
|
||||||
// Gives a hint that the next syscall
|
|
||||||
// executed by the current goroutine will block.
|
|
||||||
// Currently used only on windows.
|
|
||||||
void
|
|
||||||
net·runtime_blockingSyscallHint(void)
|
|
||||||
{
|
|
||||||
g->blockingsyscall = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
runtime·cgocall(void (*fn)(void*), void *arg)
|
runtime·cgocall(void (*fn)(void*), void *arg)
|
||||||
{
|
{
|
||||||
@ -158,11 +149,7 @@ runtime·cgocall(void (*fn)(void*), void *arg)
|
|||||||
* so it is safe to call while "in a system call", outside
|
* so it is safe to call while "in a system call", outside
|
||||||
* the $GOMAXPROCS accounting.
|
* the $GOMAXPROCS accounting.
|
||||||
*/
|
*/
|
||||||
if(g->blockingsyscall) {
|
runtime·entersyscall();
|
||||||
g->blockingsyscall = false;
|
|
||||||
runtime·entersyscallblock();
|
|
||||||
} else
|
|
||||||
runtime·entersyscall();
|
|
||||||
runtime·asmcgocall(fn, arg);
|
runtime·asmcgocall(fn, arg);
|
||||||
runtime·exitsyscall();
|
runtime·exitsyscall();
|
||||||
|
|
||||||
|
@ -269,7 +269,6 @@ struct G
|
|||||||
bool ispanic;
|
bool ispanic;
|
||||||
bool issystem; // do not output in stack dump
|
bool issystem; // do not output in stack dump
|
||||||
bool isbackground; // ignore in deadlock detector
|
bool isbackground; // ignore in deadlock detector
|
||||||
bool blockingsyscall; // hint that the next syscall will block
|
|
||||||
bool preempt; // preemption signal, duplicates stackguard0 = StackPreempt
|
bool preempt; // preemption signal, duplicates stackguard0 = StackPreempt
|
||||||
int8 raceignore; // ignore race detection events
|
int8 raceignore; // ignore race detection events
|
||||||
M* m; // for debuggers, but offset not hard-coded
|
M* m; // for debuggers, but offset not hard-coded
|
||||||
@ -313,7 +312,6 @@ struct M
|
|||||||
int32 dying;
|
int32 dying;
|
||||||
int32 profilehz;
|
int32 profilehz;
|
||||||
int32 helpgc;
|
int32 helpgc;
|
||||||
bool blockingsyscall;
|
|
||||||
bool spinning;
|
bool spinning;
|
||||||
uint32 fastrand;
|
uint32 fastrand;
|
||||||
uint64 ncgocall; // number of cgo calls in total
|
uint64 ncgocall; // number of cgo calls in total
|
||||||
|
Loading…
Reference in New Issue
Block a user