mirror of
https://github.com/golang/go
synced 2024-11-20 02:34:42 -07:00
runtime: two trivial but important bug fixes
R=r https://golang.org/cl/156059
This commit is contained in:
parent
b90c39beee
commit
41554e2528
@ -287,7 +287,7 @@ TEXT setldt(SB),7,$32
|
||||
ORL $0x40, CX // 32-bit operand size
|
||||
MOVB CX, 6(AX)
|
||||
|
||||
MOVL $0xF2, 5(AX) // r/w data descriptor, dpl=3, present
|
||||
MOVB $0xF2, 5(AX) // r/w data descriptor, dpl=3, present
|
||||
|
||||
// call i386_set_ldt(entry, desc, 1)
|
||||
MOVL $0xffffffff, 0(SP) // auto-allocate entry and return in AX
|
||||
|
@ -413,7 +413,7 @@ matchmg(void)
|
||||
{
|
||||
G *g;
|
||||
|
||||
if(m->mallocing)
|
||||
if(m->mallocing || m->gcing)
|
||||
return;
|
||||
while(sched.mcpu < sched.mcpumax && (g = gget()) != nil){
|
||||
M *m;
|
||||
|
Loading…
Reference in New Issue
Block a user