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

Issue 11698043: code review 11698043: [release-branch.go1.1] cmd/8g: Make clearfat non-interl... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 9 months ago by adg
Modified:
10 years, 9 months ago
Reviewers:
bradfitz
CC:
golang-dev, bradfitz
Visibility:
Public.

Description

[release-branch.go1.1] cmd/8g: Make clearfat non-interleaved with pointer calculations. ««« CL 11383043 / dc24634de6c5 cmd/8g: Make clearfat non-interleaved with pointer calculations. clearfat (used to zero initialize structures) will use AX for x86 block ops. If we write to AX while calculating the dest pointer, we will fill the structure with incorrect values. Since 64-bit arithmetic uses AX to synthesize a 64-bit register, getting an adress by indexing with 64-bit ops can clobber the register. Fixes issue 5820. R=golang-dev, rsc CC=golang-dev https://codereview.appspot.com/11383043 »»» Update issue 5928

Patch Set 1 #

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -1 line) Patch
M src/cmd/8g/ggen.c View 1 1 chunk +1 line, -1 line 0 comments Download
A test/fixedbugs/issue5820.go View 1 1 chunk +18 lines, -0 lines 0 comments Download

Messages

Total messages: 3
adg
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go
10 years, 9 months ago (2013-07-22 23:33:03 UTC) #1
bradfitz
LGTM On Mon, Jul 22, 2013 at 4:33 PM, <adg@golang.org> wrote: > Reviewers: golang-dev1, > ...
10 years, 9 months ago (2013-07-22 23:36:10 UTC) #2
adg
10 years, 9 months ago (2013-07-22 23:40:47 UTC) #3
*** Submitted as https://code.google.com/p/go/source/detail?r=384bc9cc2853 ***

[release-branch.go1.1] cmd/8g: Make clearfat non-interleaved with pointer
calculations.

««« CL 11383043 / dc24634de6c5
cmd/8g: Make clearfat non-interleaved with pointer calculations.

clearfat (used to zero initialize structures) will use AX for x86 block ops. If
we write to AX while calculating the dest pointer, we will fill the structure
with incorrect values.
Since 64-bit arithmetic uses AX to synthesize a 64-bit register, getting an
adress by indexing with 64-bit ops can clobber the register.

Fixes issue 5820.

R=golang-dev, rsc
CC=golang-dev
https://codereview.appspot.com/11383043
»»»

Update issue 5928

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

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