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

Issue 9869045: code review 9869045: runtime: set MSpan.limit properly for large spans. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 1 month ago by khr
Modified:
12 years, 1 month ago
Reviewers:
dvyukov
CC:
golang-dev, dvyukov
Visibility:
Public.

Description

runtime: set MSpan.limit properly for large spans. Then use the limit to make sure MHeap_LookupMaybe & inlined copies don't return a span if the pointer is beyond the limit. Use this fact to optimize all call sites.

Patch Set 1 #

Patch Set 2 : diff -r 8c800027d5a6 https://khr%40golang.org@code.google.com/p/go/ #

Patch Set 3 : diff -r 8c800027d5a6 https://khr%40golang.org@code.google.com/p/go/ #

Patch Set 4 : diff -r 8c800027d5a6 https://khr%40golang.org@code.google.com/p/go/ #

Patch Set 5 : diff -r 8c800027d5a6 https://code.google.com/p/go/ #

Patch Set 6 : diff -r 8c800027d5a6 https://khr%40golang.org@code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -16 lines) Patch
M src/pkg/runtime/malloc.goc View 1 2 chunks +1 line, -5 lines 0 comments Download
M src/pkg/runtime/mgc0.c View 3 chunks +2 lines, -8 lines 0 comments Download
M src/pkg/runtime/mheap.c View 1 chunk +1 line, -3 lines 0 comments Download

Messages

Total messages: 3
khr
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://khr%40golang.org@code.google.com/p/go/
12 years, 1 month ago (2013-05-30 22:42:03 UTC) #1
dvyukov
LGTM
12 years, 1 month ago (2013-05-31 04:09:02 UTC) #2
khr
12 years, 1 month ago (2013-05-31 04:32:24 UTC) #3
*** Submitted as https://code.google.com/p/go/source/detail?r=85353b4dc2d4 ***

runtime: set MSpan.limit properly for large spans.
Then use the limit to make sure MHeap_LookupMaybe & inlined
copies don't return a span if the pointer is beyond the limit.
Use this fact to optimize all call sites.

R=golang-dev, dvyukov
CC=golang-dev
https://codereview.appspot.com/9869045
Sign in to reply to this message.

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