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

Issue 186143: code review 186143: runtime cleanup. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 6 months ago by rsc
Modified:
15 years, 6 months ago
Reviewers:
CC:
r, dho, golang-dev
Visibility:
Public.

Description

runtime cleanup. * move memory code into $GOOS-specific directory. * allow printing of static strings < 256 bytes. (dynamic strings will bump maxstring as they are allocated.) * use cgo2c for runtime.mal.

Patch Set 1 #

Patch Set 2 : code review 186143: runtime cleanup. #

Patch Set 3 : code review 186143: runtime cleanup. #

Total comments: 1

Patch Set 4 : code review 186143: runtime cleanup. #

Patch Set 5 : code review 186143: runtime cleanup. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+148 lines, -66 lines) Patch
M src/pkg/runtime/Makefile View 1 3 chunks +4 lines, -0 lines 0 comments Download
A src/pkg/runtime/darwin/mem.c View 1 2 3 1 chunk +28 lines, -0 lines 0 comments Download
A src/pkg/runtime/freebsd/mem.c View 1 2 3 1 chunk +28 lines, -0 lines 0 comments Download
A src/pkg/runtime/linux/mem.c View 1 chunk +40 lines, -0 lines 0 comments Download
M src/pkg/runtime/malloc.h View 1 chunk +4 lines, -0 lines 0 comments Download
M src/pkg/runtime/malloc.cgo View 1 chunk +0 lines, -35 lines 0 comments Download
R src/pkg/runtime/mem.c View 1 2 3 4 1 chunk +0 lines, -21 lines 0 comments Download
A src/pkg/runtime/mingw/mem.c View 1 chunk +29 lines, -0 lines 0 comments Download
M src/pkg/runtime/mingw/os.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/pkg/runtime/mingw/thread.c View 2 chunks +1 line, -9 lines 0 comments Download
A src/pkg/runtime/runtime1.cgo View 1 chunk +11 lines, -0 lines 0 comments Download
M src/pkg/runtime/string.cgo View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 5
rsc
Hello r (cc: golang-dev@googlegroups.com), I'd like you to review this change.
15 years, 6 months ago (2010-01-14 00:05:47 UTC) #1
dho
LGTM; comments re: FreeBSD below http://codereview.appspot.com/186143/diff/1037/15 File src/pkg/runtime/freebsd/mem.c (right): http://codereview.appspot.com/186143/diff/1037/15#newcode13 src/pkg/runtime/freebsd/mem.c:13: if(p < (void*)4096) { ...
15 years, 6 months ago (2010-01-14 01:00:00 UTC) #2
rsc
> http://codereview.appspot.com/186143/diff/1037/15#newcode13 > src/pkg/runtime/freebsd/mem.c:13: if(p < (void*)4096) { > Why not just get MAP_FAILED from ...
15 years, 6 months ago (2010-01-14 01:05:51 UTC) #3
r
LGTM
15 years, 6 months ago (2010-01-14 01:49:25 UTC) #4
rsc
15 years, 6 months ago (2010-01-14 01:50:05 UTC) #5
*** Submitted as http://code.google.com/p/go/source/detail?r=9aa35052893f ***

runtime cleanup.
  * move memory code into $GOOS-specific directory.
  * allow printing of static strings < 256 bytes.
    (dynamic strings will bump maxstring as they are allocated.)
  * use cgo2c for runtime.mal.

R=r, dho
CC=golang-dev
http://codereview.appspot.com/186143
Sign in to reply to this message.

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