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

Issue 118050043: code review 118050043: runtime: set sweepgen atomically before updating span state (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 4 months ago by khr
Modified:
11 years, 4 months ago
Reviewers:
gobot, dvyukov
CC:
golang-codereviews, dvyukov
Visibility:
Public.

Description

runtime: set sweepgen atomically before updating span state Sweepone may be running while a new span is allocating. It must not see the state updated while the sweepgen is unset. Fixes issue 8399

Patch Set 1 #

Patch Set 2 : diff -r 72806f50d410 https://khr%40golang.org@code.google.com/p/go/ #

Patch Set 3 : diff -r 72806f50d410 https://khr%40golang.org@code.google.com/p/go/ #

Total comments: 1

Patch Set 4 : diff -r 2a40ee658066 https://khr%40golang.org@code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M src/pkg/runtime/mheap.c View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 4
khr
Hello golang-codereviews@googlegroups.com, I'd like you to review this change to https://khr%40golang.org@code.google.com/p/go/
11 years, 4 months ago (2014-07-21 21:39:34 UTC) #1
dvyukov
LGTM with nit https://codereview.appspot.com/118050043/diff/40001/src/pkg/runtime/mgc0.c File src/pkg/runtime/mgc0.c (right): https://codereview.appspot.com/118050043/diff/40001/src/pkg/runtime/mgc0.c#newcode1257 src/pkg/runtime/mgc0.c:1257: if(runtime·atomicload(&s->sweepgen) != sg) { this does ...
11 years, 4 months ago (2014-07-22 09:26:59 UTC) #2
khr
*** Submitted as https://code.google.com/p/go/source/detail?r=cf71e2f3f8b5 *** runtime: set sweepgen atomically before updating span state Sweepone may ...
11 years, 4 months ago (2014-07-24 21:37:37 UTC) #3
gobot
11 years, 4 months ago (2014-07-24 22:17:27 UTC) #4
Message was sent while issue was closed.
This CL appears to have broken the openbsd-386-rootbsd builder.
See http://build.golang.org/log/98a02959ba2807e1e90d010fc1b8e36681544baa
Sign in to reply to this message.

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