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

Issue 72630043: code review 72630043: sync: give finalizers more time in TestPoolGC (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 3 months ago by rsc
Modified:
11 years, 3 months ago
Reviewers:
bradfitz
CC:
bradfitz, golang-codereviews
Visibility:
Public.

Description

sync: give finalizers more time in TestPoolGC If we report a leak, make sure we've waited long enough to be sure. The new sleep regimen waits 1.05 seconds before failing; the old one waited 0.005 seconds. (The single linux/amd64 failure in this test feels more like a timing problem than a leak. I don't want to spend time on it unless we're sure.)

Patch Set 1 #

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

Patch Set 3 : diff -r c8001e7d2526 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/sync/pool_test.go View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 4
rsc
Hello bradfitz (cc: golang-codereviews@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go/
11 years, 3 months ago (2014-03-07 20:07:48 UTC) #1
bradfitz
LGTM But I think Dmitry wrote that. And I thought runtime.GC was aggressive enough now. ...
11 years, 3 months ago (2014-03-07 20:41:28 UTC) #2
rsc
runtime.GC is aggressive enough - they will be on the finalizer queue when it returns. ...
11 years, 3 months ago (2014-03-07 21:07:57 UTC) #3
rsc
11 years, 3 months ago (2014-03-07 21:08:19 UTC) #4
*** Submitted as https://code.google.com/p/go/source/detail?r=26aa53304a48 ***

sync: give finalizers more time in TestPoolGC

If we report a leak, make sure we've waited long enough to be sure.
The new sleep regimen waits 1.05 seconds before failing; the old
one waited 0.005 seconds.

(The single linux/amd64 failure in this test feels more like a
timing problem than a leak. I don't want to spend time on it unless
we're sure.)

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

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