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

Issue 57730043: code review 57730043: runtime: adjust malloc race instrumentation for tiny allocs (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 5 months ago by dvyukov
Modified:
11 years, 5 months ago
Reviewers:
dave
CC:
golang-codereviews, dave_cheney.net
Visibility:
Public.

Description

runtime: adjust malloc race instrumentation for tiny allocs Tiny alloc memory block is shared by different goroutines running on the same thread. We call racemalloc after enabling preemption in mallocgc, as the result another goroutine can act on not yet race-cleared tiny block. Call racemalloc before enabling preemption. Fixes issue 7224.

Patch Set 1 #

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

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

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

Patch Set 5 : diff -r 09a55add2bb5 https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 6 : diff -r 09a55add2bb5 https://dvyukov%40google.com@code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -2 lines) Patch
M src/pkg/runtime/malloc.goc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/runtime/race/testdata/mop_test.go View 1 2 3 4 1 chunk +22 lines, -0 lines 0 comments Download

Messages

Total messages: 4
dvyukov
Hello golang-codereviews@googlegroups.com, I'd like you to review this change to https://dvyukov%40google.com@code.google.com/p/go/
11 years, 5 months ago (2014-01-28 12:15:26 UTC) #1
dave_cheney.net
LGTM. Is it possible to write a test for issue 7224 ? On Tue, Jan ...
11 years, 5 months ago (2014-01-28 12:17:29 UTC) #2
dvyukov
On 2014/01/28 12:17:29, dfc wrote: > LGTM. Is it possible to write a test for ...
11 years, 5 months ago (2014-01-28 18:34:16 UTC) #3
dvyukov
11 years, 5 months ago (2014-01-28 18:35:42 UTC) #4
*** Submitted as https://code.google.com/p/go/source/detail?r=a0ebdefd52b0 ***

runtime: adjust malloc race instrumentation for tiny allocs
Tiny alloc memory block is shared by different goroutines running on the same
thread.
We call racemalloc after enabling preemption in mallocgc,
as the result another goroutine can act on not yet race-cleared tiny block.
Call racemalloc before enabling preemption.
Fixes issue 7224.

LGTM=dave
R=golang-codereviews, dave
CC=golang-codereviews
https://codereview.appspot.com/57730043
Sign in to reply to this message.

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