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

Issue 10242047: code review 10242047: runtime: fix race condition between GC and setGCPercent (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years ago by dvyukov
Modified:
12 years ago
Reviewers:
iant
CC:
golang-dev, iant
Visibility:
Public.

Description

runtime: fix race condition between GC and setGCPercent If first GC runs concurrently with setGCPercent, it can overwrite gcpercent value with default.

Patch Set 1 #

Patch Set 2 : diff -r 52d53d0e177e https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 3 : diff -r 52d53d0e177e https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 4 : diff -r 81e554ab7787 https://dvyukov%40google.com@code.google.com/p/go/ #

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

Messages

Total messages: 3
dvyukov
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://dvyukov%40google.com@code.google.com/p/go/
12 years ago (2013-06-14 15:08:14 UTC) #1
iant
LGTM
12 years ago (2013-06-14 15:29:06 UTC) #2
dvyukov
12 years ago (2013-06-15 12:07:10 UTC) #3
*** Submitted as https://code.google.com/p/go/source/detail?r=2879112bff3d ***

runtime: fix race condition between GC and setGCPercent
If first GC runs concurrently with setGCPercent,
it can overwrite gcpercent value with default.

R=golang-dev, iant
CC=golang-dev
https://codereview.appspot.com/10242047
Sign in to reply to this message.

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