Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
d3229873
Commit
d3229873
authored
Feb 10, 2012
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
runtime: For g0 set stack_size to 0 when not -fsplit-stack.
From-SVN: r184099
parent
c91e2490
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
+5
-1
libgo/runtime/proc.c
+5
-1
No files found.
libgo/runtime/proc.c
View file @
d3229873
...
@@ -909,7 +909,9 @@ runtime_mstart(void* mp)
...
@@ -909,7 +909,9 @@ runtime_mstart(void* mp)
__splitstack_getcontext
(
&
g
->
stack_context
[
0
]);
__splitstack_getcontext
(
&
g
->
stack_context
[
0
]);
#else
#else
g
->
gcinitial_sp
=
&
mp
;
g
->
gcinitial_sp
=
&
mp
;
g
->
gcstack_size
=
StackMin
;
// Setting gcstack_size to 0 is a marker meaning that gcinitial_sp
// is the top of the stack, not the bottom.
g
->
gcstack_size
=
0
;
g
->
gcnext_sp
=
&
mp
;
g
->
gcnext_sp
=
&
mp
;
#endif
#endif
getcontext
(
&
g
->
context
);
getcontext
(
&
g
->
context
);
...
@@ -1267,6 +1269,8 @@ __go_go(void (*fn)(void*), void* arg)
...
@@ -1267,6 +1269,8 @@ __go_go(void (*fn)(void*), void* arg)
#else
#else
sp
=
newg
->
gcinitial_sp
;
sp
=
newg
->
gcinitial_sp
;
spsize
=
newg
->
gcstack_size
;
spsize
=
newg
->
gcstack_size
;
if
(
spsize
==
0
)
runtime_throw
(
"bad spsize in __go_go"
);
newg
->
gcnext_sp
=
sp
;
newg
->
gcnext_sp
=
sp
;
#endif
#endif
}
else
{
}
else
{
...
...
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