Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(198)

Unified Diff: src/pkg/runtime/mgc0.c

Issue 5254059: code review 5254059: runtime: fix memory leak in parallel garbage collector (Closed)
Patch Set: diff -r 92b8c1bf3e95 https://go.googlecode.com/hg/ Created 13 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/pkg/runtime/gc_test.go ('k') | src/run.bash » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pkg/runtime/mgc0.c
===================================================================
--- a/src/pkg/runtime/mgc0.c
+++ b/src/pkg/runtime/mgc0.c
@@ -501,7 +501,7 @@
runtime·lock(&work.emu);
b->next = work.empty;
- work.empty = b->next;
+ work.empty = b;
runtime·unlock(&work.emu);
}
« no previous file with comments | « src/pkg/runtime/gc_test.go ('k') | src/run.bash » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b