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
01ab9a01
Commit
01ab9a01
authored
Feb 27, 2013
by
Jan Ziak
Committed by
Russ Cox
Feb 27, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
runtime: improve precision of GC_REGION
R=rsc CC=golang-dev
https://golang.org/cl/7383054
parent
5a09f1b3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
mgc0.c
src/pkg/runtime/mgc0.c
+7
-2
No files found.
src/pkg/runtime/mgc0.c
View file @
01ab9a01
...
...
@@ -546,7 +546,7 @@ static void
scanblock
(
Workbuf
*
wbuf
,
Obj
*
wp
,
uintptr
nobj
,
bool
keepworking
)
{
byte
*
b
,
*
arena_start
,
*
arena_used
;
uintptr
n
,
i
,
end_b
,
elemsize
,
ti
,
objti
,
count
,
type
;
uintptr
n
,
i
,
end_b
,
elemsize
,
size
,
ti
,
objti
,
count
,
type
;
uintptr
*
pc
,
precise_type
,
nominal_size
;
uintptr
*
map_ret
,
mapkey_size
,
mapval_size
,
mapkey_ti
,
mapval_ti
;
void
*
obj
;
...
...
@@ -905,9 +905,14 @@ scanblock(Workbuf *wbuf, Obj *wp, uintptr nobj, bool keepworking)
continue
;
case
GC_REGION
:
// TODO(atom): to be expanded in a next CL. Same as GC_APTR for now.
obj
=
(
void
*
)(
stack_top
.
b
+
pc
[
1
]);
size
=
pc
[
2
];
objti
=
pc
[
3
];
pc
+=
4
;
*
objbufpos
++
=
(
Obj
){
obj
,
size
,
objti
};
if
(
objbufpos
==
objbuf_end
)
flushobjbuf
(
objbuf
,
&
objbufpos
,
&
wp
,
&
wbuf
,
&
nobj
);
break
;
case
GC_CHAN
:
...
...
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