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

Issue 7916043: code review 7916043: runtime: prevent garbage collection during hashmap inse... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 8 months ago by atom
Modified:
13 years, 8 months ago
Reviewers:
CC:
golang-dev, DMorsing, dave_cheney.net, dvyukov, bradfitz, rsc, remyoudompheng
Visibility:
Public.

Description

runtime: prevent garbage collection during hashmap insertion (fix 2) Fixes issue 5074 in multi-threaded scenarios.

Patch Set 1 #

Patch Set 2 : diff -r 53c873e9f93d https://code.google.com/p/go/ #

Patch Set 3 : diff -r 8cc853b84f89 https://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/malloc.goc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 11
atom
Hello golang-dev@googlegroups.com (cc: remyoudompheng), I'd like you to review this change to https://code.google.com/p/go/
13 years, 8 months ago (2013-03-20 06:57:05 UTC) #1
DMorsing
Wouldn't a simpler solution be to make sure that mallocgc doesn't schedule when dogc == ...
13 years, 8 months ago (2013-03-20 08:03:56 UTC) #2
dave_cheney.net
Is this intended to fix this class of crash ? http://build.golang.org/log/a4c89f126a86f3b957b4ad891d1a7bf546e573c9 On Wed, Mar 20, ...
13 years, 8 months ago (2013-03-20 08:07:51 UTC) #3
atom
On 2013/03/20 08:07:51, dfc wrote: > Is this intended to fix this class of crash ...
13 years, 8 months ago (2013-03-20 08:11:31 UTC) #4
atom
On 2013/03/20 08:03:56, DMorsing wrote: > Wouldn't a simpler solution be to make sure that ...
13 years, 8 months ago (2013-03-20 08:27:49 UTC) #5
dvyukov
On Wed, Mar 20, 2013 at 12:27 PM, <0xE2.0x9A.0x9B@gmail.com> wrote: > On 2013/03/20 08:03:56, DMorsing ...
13 years, 8 months ago (2013-03-20 08:40:43 UTC) #6
atom
Hello golang-dev@googlegroups.com, daniel.morsing@gmail.com, dave@cheney.net, dvyukov@google.com (cc: golang-dev@googlegroups.com, remyoudompheng@gmail.com), Please take another look.
13 years, 8 months ago (2013-03-20 10:12:45 UTC) #7
bradfitz
LGTM at least Is there any subtlety between what Dmitry proposed (m->locks++/-- before/after the mallocgc ...
13 years, 8 months ago (2013-03-20 16:03:08 UTC) #8
atom
On 2013/03/20 16:03:08, bradfitz wrote: > LGTM at least > > Is there any subtlety ...
13 years, 8 months ago (2013-03-20 16:46:33 UTC) #9
rsc
LGTM
13 years, 8 months ago (2013-03-20 18:45:38 UTC) #10
atom
13 years, 8 months ago (2013-03-20 19:36:45 UTC) #11
*** Submitted as https://code.google.com/p/go/source/detail?r=61fa5c7d741f ***

runtime: prevent garbage collection during hashmap insertion (fix 2)

Fixes issue 5074 in multi-threaded scenarios.

R=golang-dev, daniel.morsing, dave, dvyukov, bradfitz, rsc
CC=golang-dev, remyoudompheng
https://codereview.appspot.com/7916043
Sign in to reply to this message.

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