> http://codereview.appspot.com/207044/diff/1042/43#newcode185 > src/pkg/runtime/malloc.cgo:185: /* > Any particular reason to comment this out? It's good ...
15 years, 3 months ago
(2010-02-10 06:08:59 UTC)
#3
> http://codereview.appspot.com/207044/diff/1042/43#newcode185
> src/pkg/runtime/malloc.cgo:185: /*
> Any particular reason to comment this out?
It's good for error checking but is noticeably expensive.
mlookup is the bottleneck for the tracing phase of
the garbage collector. I'll add a comment.
> http://codereview.appspot.com/207044/diff/1042/46#newcode151
> src/pkg/runtime/mcentral.c:151: p->next = nil;
> Looks like you are setting p->next = nil twice. The second one is
> unnecessary.
Thanks.
Russ
Issue 207044: code review 207044: runtime: garbage collection + malloc performance
(Closed)
Created 15 years, 3 months ago by rsc
Modified 15 years, 3 months ago
Reviewers:
Base URL:
Comments: 2