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
f671b589
Commit
f671b589
authored
Nov 07, 2013
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
runtime: Fixes for Alpha.
From-SVN: r204551
parent
50c7654b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletions
+4
-1
libgo/runtime/mheap.c
+3
-0
libgo/runtime/proc.c
+1
-1
No files found.
libgo/runtime/mheap.c
View file @
f671b589
...
...
@@ -68,6 +68,7 @@ runtime_MHeap_Init(MHeap *h)
void
runtime_MHeap_MapSpans
(
MHeap
*
h
)
{
uintptr
pagesize
;
uintptr
n
;
// Map spans array, PageSize at a time.
...
...
@@ -76,6 +77,8 @@ runtime_MHeap_MapSpans(MHeap *h)
n
-=
(
uintptr
)
h
->
arena_start
;
n
=
n
/
PageSize
*
sizeof
(
h
->
spans
[
0
]);
n
=
ROUND
(
n
,
PageSize
);
pagesize
=
getpagesize
();
n
=
ROUND
(
n
,
pagesize
);
if
(
h
->
spans_mapped
>=
n
)
return
;
runtime_SysMap
((
byte
*
)
h
->
spans
+
h
->
spans_mapped
,
n
-
h
->
spans_mapped
,
&
mstats
.
other_sys
);
...
...
libgo/runtime/proc.c
View file @
f671b589
...
...
@@ -2098,7 +2098,7 @@ runtime_malg(int32 stacksize, byte** ret_stack, size_t* ret_stacksize)
__splitstack_block_signals_context
(
&
newg
->
stack_context
[
0
],
&
dont_block_signals
,
nil
);
#else
*
ret_stack
=
runtime_mallocgc
(
stacksize
,
FlagNoProfiling
|
FlagNoGC
,
0
,
0
);
*
ret_stack
=
runtime_mallocgc
(
stacksize
,
0
,
FlagNoProfiling
|
FlagNoGC
);
*
ret_stacksize
=
stacksize
;
newg
->
gcinitial_sp
=
*
ret_stack
;
newg
->
gcstack_size
=
stacksize
;
...
...
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