1
0
mirror of https://github.com/golang/go synced 2024-10-02 18:08:33 -06:00
go/src/pkg/runtime/arch_386.h
Russ Cox d42495aa80 cmd/cc: add PREFETCH built-in (like SET, USED)
This makes it possible to inline the prefetch of upcoming
memory addresses during garbage collection, instead of
needing to flush registers, make a function call, and
reload registers.  On garbage collection-heavy workloads,
this results in a 5% speedup.

Fixes #3493.

R=dvyukov, ken, r, dave
CC=golang-dev
https://golang.org/cl/5990066
2012-05-02 16:22:56 -04:00

5 lines
46 B
C

enum {
thechar = '8',
CacheLineSize = 64
};