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

Issue 128680043: code review 128680043: runtime: Loosen conditions in TestMemstat in an attempt... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 8 months ago by sanjay.m
Modified:
10 years, 8 months ago
Reviewers:
gobot, 0intro, dvyukov
CC:
golang-codereviews, khr
Visibility:
Public.

Description

runtime: Loosen conditions in TestMemstat in an attempt to fix the nacl/arm build.

Patch Set 1 #

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

Total comments: 2

Patch Set 3 : diff -r 01dfd37363e90fcfdb4bd8e84d275709fa7e7f5e https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -2 lines) Patch
M src/pkg/runtime/malloc_test.go View 1 2 2 chunks +6 lines, -2 lines 0 comments Download

Messages

Total messages: 15
sanjay.m
Hello golang-codereviews@googlegroups.com (cc: khr@golang.org), I'd like you to review this change to https://code.google.com/p/go
10 years, 8 months ago (2014-08-25 05:23:21 UTC) #1
sanjay.m
Worth noting that the build might not be broken, this feels like a fairly unlikely ...
10 years, 8 months ago (2014-08-25 05:34:49 UTC) #2
dvyukov
https://codereview.appspot.com/128680043/diff/20001/src/pkg/runtime/malloc_test.go File src/pkg/runtime/malloc_test.go (right): https://codereview.appspot.com/128680043/diff/20001/src/pkg/runtime/malloc_test.go#newcode44 src/pkg/runtime/malloc_test.go:44: if st.HeapIdle+st.HeapInuse != st.HeapSys-st.HeapReleased { remove "-st.HeapReleased", released memory ...
10 years, 8 months ago (2014-08-25 06:16:24 UTC) #3
sanjay.m
Hello golang-codereviews@googlegroups.com, dvyukov@google.com (cc: golang-codereviews@googlegroups.com, khr@golang.org), Please take another look.
10 years, 8 months ago (2014-08-25 06:28:45 UTC) #4
dvyukov
LGTM
10 years, 8 months ago (2014-08-25 06:59:26 UTC) #5
dvyukov
*** Submitted as https://code.google.com/p/go/source/detail?r=f0b358f1d972 *** runtime: Loosen conditions in TestMemstat in an attempt to fix ...
10 years, 8 months ago (2014-08-25 07:29:55 UTC) #6
gobot
This CL appears to have broken the plan9-386-cnielsen builder. See http://build.golang.org/log/ddc76b998ed4bc38df657faf16694985434910b9
10 years, 8 months ago (2014-08-25 07:39:57 UTC) #7
0intro
It seems the test is failing on Plan 9 386 and amd64. --- FAIL: TestMemStats ...
10 years, 8 months ago (2014-08-25 11:47:25 UTC) #8
dvyukov
On 2014/08/25 11:47:25, 0intro wrote: > It seems the test is failing on Plan 9 ...
10 years, 8 months ago (2014-08-25 12:01:34 UTC) #9
0intro
MemStats Alloc 46760 TotalAlloc 50688 Sys 807410812 Lookups 3 Mallocs 257 Frees 22 HeapAlloc 46760 ...
10 years, 8 months ago (2014-08-25 12:34:01 UTC) #10
0intro
--- FAIL: TestMemStats (71.93s) malloc_test.go:88: HeapIdle(352256) + HeapInuse(237568) should be equal to HeapSys(805904384), but isn't. ...
10 years, 8 months ago (2014-08-25 12:35:17 UTC) #11
dvyukov
David, please test https://codereview.appspot.com/131190043 I have not tried to build it, so the code can ...
10 years, 8 months ago (2014-08-25 12:41:17 UTC) #12
0intro
Thanks. It looks better but we're still not there. % go test -v -run TestMemStats ...
10 years, 8 months ago (2014-08-25 13:04:54 UTC) #13
dvyukov
try s/runtime·xadd64(&mstats.heap_sys, nbytes)/runtime·xadd64(stat, nbytes)/ in SysMap On Mon, Aug 25, 2014 at 5:04 PM, David ...
10 years, 8 months ago (2014-08-25 13:16:00 UTC) #14
0intro
10 years, 8 months ago (2014-08-25 13:28:17 UTC) #15
> try s/runtime·xadd64(&mstats.heap_sys, nbytes)/runtime·xadd64(stat,
> nbytes)/ in SysMap

Thanks. The test passes now.

-- 
David du Colombier
Sign in to reply to this message.

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