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
936498e5
Commit
936498e5
authored
Nov 01, 2012
by
Dmitriy Vyukov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd/gc: fix build
R=golang-dev CC=golang-dev
https://golang.org/cl/6826047
parent
de10a23d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
9 deletions
+1
-9
racewalk.c
src/cmd/gc/racewalk.c
+1
-9
No files found.
src/cmd/gc/racewalk.c
View file @
936498e5
...
...
@@ -43,13 +43,6 @@ racewalk(Node *fn)
}
}
<<<<<<<
local
// TODO(dvyukov): ideally this should be:
// racefuncenter(getreturnaddress())
// because it's much more costly to obtain from runtime library.
nd
=
mkcall
(
"racefuncenter"
,
T
,
nil
);
fn
->
enter
=
concat
(
list1
(
nd
),
fn
->
enter
);
=======
// nodpc is the PC of the caller as extracted by
// getcallerpc. We use -widthptr(FP) for x86.
// BUG: this will not work on arm.
...
...
@@ -58,8 +51,7 @@ racewalk(Node *fn)
nodpc
->
type
=
types
[
TUINTPTR
];
nodpc
->
xoffset
=
-
widthptr
;
nd
=
mkcall
(
"racefuncenter"
,
T
,
nil
,
nodpc
);
fn
->
enter
=
list
(
fn
->
enter
,
nd
);
>>>>>>>
other
fn
->
enter
=
concat
(
list1
(
nd
),
fn
->
enter
);
nd
=
mkcall
(
"racefuncexit"
,
T
,
nil
);
fn
->
exit
=
list
(
fn
->
exit
,
nd
);
racewalklist
(
curfn
->
nbody
,
nil
);
...
...
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