1
0
mirror of https://github.com/golang/go synced 2024-11-20 02:24:43 -07:00

runtime: two trivial but important bug fixes

R=r
https://golang.org/cl/156059
This commit is contained in:
Russ Cox 2009-11-17 22:00:30 -08:00
parent b90c39beee
commit 41554e2528
2 changed files with 2 additions and 2 deletions

View File

@ -287,7 +287,7 @@ TEXT setldt(SB),7,$32
ORL $0x40, CX // 32-bit operand size ORL $0x40, CX // 32-bit operand size
MOVB CX, 6(AX) 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) // call i386_set_ldt(entry, desc, 1)
MOVL $0xffffffff, 0(SP) // auto-allocate entry and return in AX MOVL $0xffffffff, 0(SP) // auto-allocate entry and return in AX

View File

@ -413,7 +413,7 @@ matchmg(void)
{ {
G *g; G *g;
if(m->mallocing) if(m->mallocing || m->gcing)
return; return;
while(sched.mcpu < sched.mcpumax && (g = gget()) != nil){ while(sched.mcpu < sched.mcpumax && (g = gget()) != nil){
M *m; M *m;