Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
41554e25
Commit
41554e25
authored
Nov 18, 2009
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
runtime: two trivial but important bug fixes
R=r
https://golang.org/cl/156059
parent
b90c39be
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
sys.s
src/pkg/runtime/darwin/386/sys.s
+1
-1
proc.c
src/pkg/runtime/proc.c
+1
-1
No files found.
src/pkg/runtime/darwin/386/sys.s
View file @
41554e25
...
...
@@ -287,7 +287,7 @@ TEXT setldt(SB),7,$32
ORL $0x40, CX // 32-bit operand size
MOVB CX, 6(AX)
MOV
L
$0xF2, 5(AX) // r/w data descriptor, dpl=3, present
MOV
B
$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
...
...
src/pkg/runtime/proc.c
View file @
41554e25
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment