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
78a6d68c
Commit
78a6d68c
authored
Feb 15, 2009
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build nits
R=r DELTA=8 (0 added, 6 deleted, 2 changed) OCL=25045 CL=25045
parent
3b3e6373
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
8 deletions
+2
-8
run.bash
src/run.bash
+0
-6
malloc.c
src/runtime/malloc.c
+2
-2
No files found.
src/run.bash
View file @
78a6d68c
...
...
@@ -52,12 +52,6 @@ time make
make smoketest
)
||
exit
$?
# (xcd ../usr/gri/gosrc
# make clean
# time make
# # make test
# ) || exit $?
(
xcd ../doc/progs
time
./run
)
||
exit
$?
...
...
src/runtime/malloc.c
View file @
78a6d68c
...
...
@@ -162,9 +162,9 @@ mlookup(void *v, byte **base, uintptr *size, uint32 **ref)
*
size
=
n
;
nobj
=
(
s
->
npages
<<
PageShift
)
/
(
n
+
RefcountOverhead
);
if
((
byte
*
)
s
->
gcref
<
p
||
(
byte
*
)(
s
->
gcref
+
nobj
)
>
p
+
(
s
->
npages
<<
PageShift
))
{
printf
(
"odd span state=%d span=%p base=%p sizeclass=%d n=%
d size=%d npages=%d
\n
"
,
printf
(
"odd span state=%d span=%p base=%p sizeclass=%d n=%
D size=%D npages=%D
\n
"
,
s
->
state
,
s
,
p
,
s
->
sizeclass
,
nobj
,
n
,
s
->
npages
);
printf
(
"s->base sizeclass %d v=%p base=%p gcref=%p blocksize=%D nobj=%
d
size=%D end=%p end=%p
\n
"
,
printf
(
"s->base sizeclass %d v=%p base=%p gcref=%p blocksize=%D nobj=%
D
size=%D end=%p end=%p
\n
"
,
s
->
sizeclass
,
v
,
p
,
s
->
gcref
,
s
->
npages
<<
PageShift
,
nobj
,
n
,
s
->
gcref
+
nobj
,
p
+
(
s
->
npages
<<
PageShift
));
throw
(
"bad gcref"
);
...
...
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