mirror of
https://github.com/golang/go
synced 2024-10-04 08:21:22 -06:00
40d7d5a656
benchmark old ns/op new ns/op delta BenchmarkSelectUncontended 220 165 -25.00% BenchmarkSelectContended 209 161 -22.97% BenchmarkSelectProdCons 1042 904 -13.24% But more importantly this change will allow to get rid of free function in runtime. Fixes #6494. LGTM=rsc, khr R=golang-codereviews, rsc, dominik.honnef, khr CC=golang-codereviews, remyoudompheng https://golang.org/cl/107670043
26 lines
502 B
C
26 lines
502 B
C
// Copyright 2011 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
enum {
|
|
thechar = '6',
|
|
BigEndian = 0,
|
|
CacheLineSize = 64,
|
|
#ifdef GOOS_solaris
|
|
RuntimeGogoBytes = 80,
|
|
#else
|
|
#ifdef GOOS_windows
|
|
RuntimeGogoBytes = 80,
|
|
#else
|
|
#ifdef GOOS_plan9
|
|
RuntimeGogoBytes = 80,
|
|
#else
|
|
RuntimeGogoBytes = 64,
|
|
#endif // Plan 9
|
|
#endif // Windows
|
|
#endif // Solaris
|
|
PhysPageSize = 4096,
|
|
PCQuantum = 1,
|
|
Int64Align = 8
|
|
};
|