File tree Expand file tree Collapse file tree 4 files changed +39
-4
lines changed Expand file tree Collapse file tree 4 files changed +39
-4
lines changed Original file line number Diff line number Diff line change 22// of this source code is governed by a BSD-style license that can be found in
33// the LICENSE file.
44
5- //go:build 386 || amd64p32 || arm || armbe || mips || mipsle || mips64p32 || mips64p32le || ppc || sparc
6- // +build 386 amd64p32 arm armbe mips mipsle mips64p32 mips64p32le ppc sparc
5+ //go:build 386 || amd64p32 || arm || armbe || ppc || sparc
6+ // +build 386 amd64p32 arm armbe ppc sparc
77
88package manual
99
Original file line number Diff line number Diff line change 1+ // Copyright 2020 The LevelDB-Go and Pebble Authors. All rights reserved. Use
2+ // of this source code is governed by a BSD-style license that can be found in
3+ // the LICENSE file.
4+
5+ //go:build mips || mipsle || mips64p32 || mips64p32le
6+ // +build mips mipsle mips64p32 mips64p32le
7+
8+ package manual
9+
10+ const (
11+ // MaxArrayLen is a safe maximum length for slices on this architecture.
12+ MaxArrayLen = 1 << 30
13+ )
Original file line number Diff line number Diff line change 1212// implied. See the License for the specific language governing
1313// permissions and limitations under the License.
1414
15- //go:build 386 || amd64p32 || arm || armbe || mips || mipsle || mips64p32 || mips64p32le || ppc || sparc
16- // +build 386 amd64p32 arm armbe mips mipsle mips64p32 mips64p32le ppc sparc
15+ //go:build 386 || amd64p32 || arm || armbe || ppc || sparc
16+ // +build 386 amd64p32 arm armbe ppc sparc
1717
1818package rawalloc
1919
Original file line number Diff line number Diff line change 1+ // Copyright 2014 The Cockroach Authors.
2+ //
3+ // Licensed under the Apache License, Version 2.0 (the "License");
4+ // you may not use this file except in compliance with the License.
5+ // You may obtain a copy of the License at
6+ //
7+ // http://www.apache.org/licenses/LICENSE-2.0
8+ //
9+ // Unless required by applicable law or agreed to in writing, software
10+ // distributed under the License is distributed on an "AS IS" BASIS,
11+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
12+ // implied. See the License for the specific language governing
13+ // permissions and limitations under the License.
14+
15+ //go:build mips || mipsle || mips64p32 || mips64p32le
16+ // +build mips mipsle mips64p32 mips64p32le
17+
18+ package rawalloc
19+
20+ const (
21+ maxArrayLen = 1 << 30
22+ )
You can’t perform that action at this time.
0 commit comments