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
7e7008fa
Commit
7e7008fa
authored
Dec 03, 2009
by
Christopher Wedgwood
Committed by
Russ Cox
Dec 03, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gc: Allow allow data types up to 1GB
R=rsc
https://golang.org/cl/164095
parent
6db683fe
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
gen.c
src/cmd/gc/gen.c
+1
-1
go.h
src/cmd/gc/go.h
+2
-1
subr.c
src/cmd/gc/subr.c
+1
-1
No files found.
src/cmd/gc/gen.c
View file @
7e7008fa
...
...
@@ -52,7 +52,7 @@ allocparams(void)
continue
;
dowidth
(
n
->
type
);
w
=
n
->
type
->
width
;
if
(
w
>=
100000000
)
if
(
w
>=
MAXWIDTH
)
fatal
(
"bad width"
);
stksize
+=
w
;
stksize
=
rnd
(
stksize
,
w
);
...
...
src/cmd/gc/go.h
View file @
7e7008fa
...
...
@@ -53,7 +53,8 @@ enum
AINTER
,
ANILINTER
,
BADWIDTH
=
-
1000000000
BADWIDTH
=
-
1000000000
,
MAXWIDTH
=
1
<<
30
};
/*
...
...
src/cmd/gc/subr.c
View file @
7e7008fa
...
...
@@ -2431,7 +2431,7 @@ setmaxarg(Type *t)
dowidth
(
t
);
w
=
t
->
argwid
;
if
(
t
->
argwid
>=
100000000
)
if
(
t
->
argwid
>=
MAXWIDTH
)
fatal
(
"bad argwid %T"
,
t
);
if
(
w
>
maxarg
)
maxarg
=
w
;
...
...
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