Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
a94ea824
Unverified
Commit
a94ea824
authored
Sep 25, 2018
by
k8s-ci-robot
Committed by
GitHub
Sep 25, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #68238 from justinsb/update_reflect2_to_101
Update reflect2 to 1.0.1 (memory utilization fix)
parents
fe4ca268
970e4da4
Show whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
33 additions
and
19 deletions
+33
-19
Godeps.json
Godeps/Godeps.json
+2
-2
Godeps.json
staging/src/k8s.io/api/Godeps/Godeps.json
+1
-1
Godeps.json
...ing/src/k8s.io/apiextensions-apiserver/Godeps/Godeps.json
+1
-1
Godeps.json
staging/src/k8s.io/apimachinery/Godeps/Godeps.json
+1
-1
Godeps.json
staging/src/k8s.io/apiserver/Godeps/Godeps.json
+1
-1
Godeps.json
staging/src/k8s.io/cli-runtime/Godeps/Godeps.json
+1
-1
Godeps.json
staging/src/k8s.io/client-go/Godeps/Godeps.json
+1
-1
Godeps.json
staging/src/k8s.io/csi-api/Godeps/Godeps.json
+1
-1
Godeps.json
staging/src/k8s.io/kube-aggregator/Godeps/Godeps.json
+1
-1
Godeps.json
staging/src/k8s.io/metrics/Godeps/Godeps.json
+1
-1
Godeps.json
staging/src/k8s.io/sample-apiserver/Godeps/Godeps.json
+1
-1
Godeps.json
staging/src/k8s.io/sample-cli-plugin/Godeps/Godeps.json
+1
-1
Godeps.json
staging/src/k8s.io/sample-controller/Godeps/Godeps.json
+1
-1
.travis.yml
vendor/github.com/modern-go/reflect2/.travis.yml
+1
-0
Gopkg.toml
vendor/github.com/modern-go/reflect2/Gopkg.toml
+1
-1
reflect2.go
vendor/github.com/modern-go/reflect2/reflect2.go
+3
-0
test.sh
vendor/github.com/modern-go/reflect2/test.sh
+1
-1
type_map.go
vendor/github.com/modern-go/reflect2/type_map.go
+13
-3
No files found.
Godeps/Godeps.json
View file @
a94ea824
...
@@ -2520,8 +2520,8 @@
...
@@ -2520,8 +2520,8 @@
},
},
{
{
"ImportPath"
:
"github.com/modern-go/reflect2"
,
"ImportPath"
:
"github.com/modern-go/reflect2"
,
"Comment"
:
"
1.0.0-9-g05fbef0
"
,
"Comment"
:
"
v1.0.1
"
,
"Rev"
:
"
05fbef0ca5da472bbf96c9322b84a53edc03c9fd
"
"Rev"
:
"
94122c33edd36123c84d5368cfb2b69df93a0ec8
"
},
},
{
{
"ImportPath"
:
"github.com/mohae/deepcopy"
,
"ImportPath"
:
"github.com/mohae/deepcopy"
,
...
...
staging/src/k8s.io/api/Godeps/Godeps.json
View file @
a94ea824
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
},
},
{
{
"ImportPath"
:
"github.com/modern-go/reflect2"
,
"ImportPath"
:
"github.com/modern-go/reflect2"
,
"Rev"
:
"
05fbef0ca5da472bbf96c9322b84a53edc03c9fd
"
"Rev"
:
"
94122c33edd36123c84d5368cfb2b69df93a0ec8
"
},
},
{
{
"ImportPath"
:
"github.com/pmezard/go-difflib/difflib"
,
"ImportPath"
:
"github.com/pmezard/go-difflib/difflib"
,
...
...
staging/src/k8s.io/apiextensions-apiserver/Godeps/Godeps.json
View file @
a94ea824
...
@@ -572,7 +572,7 @@
...
@@ -572,7 +572,7 @@
},
},
{
{
"ImportPath"
:
"github.com/modern-go/reflect2"
,
"ImportPath"
:
"github.com/modern-go/reflect2"
,
"Rev"
:
"
05fbef0ca5da472bbf96c9322b84a53edc03c9fd
"
"Rev"
:
"
94122c33edd36123c84d5368cfb2b69df93a0ec8
"
},
},
{
{
"ImportPath"
:
"github.com/pborman/uuid"
,
"ImportPath"
:
"github.com/pborman/uuid"
,
...
...
staging/src/k8s.io/apimachinery/Godeps/Godeps.json
View file @
a94ea824
...
@@ -100,7 +100,7 @@
...
@@ -100,7 +100,7 @@
},
},
{
{
"ImportPath"
:
"github.com/modern-go/reflect2"
,
"ImportPath"
:
"github.com/modern-go/reflect2"
,
"Rev"
:
"
05fbef0ca5da472bbf96c9322b84a53edc03c9fd
"
"Rev"
:
"
94122c33edd36123c84d5368cfb2b69df93a0ec8
"
},
},
{
{
"ImportPath"
:
"github.com/mxk/go-flowrate/flowrate"
,
"ImportPath"
:
"github.com/mxk/go-flowrate/flowrate"
,
...
...
staging/src/k8s.io/apiserver/Godeps/Godeps.json
View file @
a94ea824
...
@@ -544,7 +544,7 @@
...
@@ -544,7 +544,7 @@
},
},
{
{
"ImportPath"
:
"github.com/modern-go/reflect2"
,
"ImportPath"
:
"github.com/modern-go/reflect2"
,
"Rev"
:
"
05fbef0ca5da472bbf96c9322b84a53edc03c9fd
"
"Rev"
:
"
94122c33edd36123c84d5368cfb2b69df93a0ec8
"
},
},
{
{
"ImportPath"
:
"github.com/pborman/uuid"
,
"ImportPath"
:
"github.com/pborman/uuid"
,
...
...
staging/src/k8s.io/cli-runtime/Godeps/Godeps.json
View file @
a94ea824
...
@@ -96,7 +96,7 @@
...
@@ -96,7 +96,7 @@
},
},
{
{
"ImportPath"
:
"github.com/modern-go/reflect2"
,
"ImportPath"
:
"github.com/modern-go/reflect2"
,
"Rev"
:
"
05fbef0ca5da472bbf96c9322b84a53edc03c9fd
"
"Rev"
:
"
94122c33edd36123c84d5368cfb2b69df93a0ec8
"
},
},
{
{
"ImportPath"
:
"github.com/peterbourgon/diskv"
,
"ImportPath"
:
"github.com/peterbourgon/diskv"
,
...
...
staging/src/k8s.io/client-go/Godeps/Godeps.json
View file @
a94ea824
...
@@ -168,7 +168,7 @@
...
@@ -168,7 +168,7 @@
},
},
{
{
"ImportPath"
:
"github.com/modern-go/reflect2"
,
"ImportPath"
:
"github.com/modern-go/reflect2"
,
"Rev"
:
"
05fbef0ca5da472bbf96c9322b84a53edc03c9fd
"
"Rev"
:
"
94122c33edd36123c84d5368cfb2b69df93a0ec8
"
},
},
{
{
"ImportPath"
:
"github.com/peterbourgon/diskv"
,
"ImportPath"
:
"github.com/peterbourgon/diskv"
,
...
...
staging/src/k8s.io/csi-api/Godeps/Godeps.json
View file @
a94ea824
...
@@ -92,7 +92,7 @@
...
@@ -92,7 +92,7 @@
},
},
{
{
"ImportPath"
:
"github.com/modern-go/reflect2"
,
"ImportPath"
:
"github.com/modern-go/reflect2"
,
"Rev"
:
"
05fbef0ca5da472bbf96c9322b84a53edc03c9fd
"
"Rev"
:
"
94122c33edd36123c84d5368cfb2b69df93a0ec8
"
},
},
{
{
"ImportPath"
:
"github.com/peterbourgon/diskv"
,
"ImportPath"
:
"github.com/peterbourgon/diskv"
,
...
...
staging/src/k8s.io/kube-aggregator/Godeps/Godeps.json
View file @
a94ea824
...
@@ -260,7 +260,7 @@
...
@@ -260,7 +260,7 @@
},
},
{
{
"ImportPath"
:
"github.com/modern-go/reflect2"
,
"ImportPath"
:
"github.com/modern-go/reflect2"
,
"Rev"
:
"
05fbef0ca5da472bbf96c9322b84a53edc03c9fd
"
"Rev"
:
"
94122c33edd36123c84d5368cfb2b69df93a0ec8
"
},
},
{
{
"ImportPath"
:
"github.com/mxk/go-flowrate/flowrate"
,
"ImportPath"
:
"github.com/mxk/go-flowrate/flowrate"
,
...
...
staging/src/k8s.io/metrics/Godeps/Godeps.json
View file @
a94ea824
...
@@ -84,7 +84,7 @@
...
@@ -84,7 +84,7 @@
},
},
{
{
"ImportPath"
:
"github.com/modern-go/reflect2"
,
"ImportPath"
:
"github.com/modern-go/reflect2"
,
"Rev"
:
"
05fbef0ca5da472bbf96c9322b84a53edc03c9fd
"
"Rev"
:
"
94122c33edd36123c84d5368cfb2b69df93a0ec8
"
},
},
{
{
"ImportPath"
:
"github.com/peterbourgon/diskv"
,
"ImportPath"
:
"github.com/peterbourgon/diskv"
,
...
...
staging/src/k8s.io/sample-apiserver/Godeps/Godeps.json
View file @
a94ea824
...
@@ -252,7 +252,7 @@
...
@@ -252,7 +252,7 @@
},
},
{
{
"ImportPath"
:
"github.com/modern-go/reflect2"
,
"ImportPath"
:
"github.com/modern-go/reflect2"
,
"Rev"
:
"
05fbef0ca5da472bbf96c9322b84a53edc03c9fd
"
"Rev"
:
"
94122c33edd36123c84d5368cfb2b69df93a0ec8
"
},
},
{
{
"ImportPath"
:
"github.com/pborman/uuid"
,
"ImportPath"
:
"github.com/pborman/uuid"
,
...
...
staging/src/k8s.io/sample-cli-plugin/Godeps/Godeps.json
View file @
a94ea824
...
@@ -92,7 +92,7 @@
...
@@ -92,7 +92,7 @@
},
},
{
{
"ImportPath"
:
"github.com/modern-go/reflect2"
,
"ImportPath"
:
"github.com/modern-go/reflect2"
,
"Rev"
:
"
05fbef0ca5da472bbf96c9322b84a53edc03c9fd
"
"Rev"
:
"
94122c33edd36123c84d5368cfb2b69df93a0ec8
"
},
},
{
{
"ImportPath"
:
"github.com/peterbourgon/diskv"
,
"ImportPath"
:
"github.com/peterbourgon/diskv"
,
...
...
staging/src/k8s.io/sample-controller/Godeps/Godeps.json
View file @
a94ea824
...
@@ -100,7 +100,7 @@
...
@@ -100,7 +100,7 @@
},
},
{
{
"ImportPath"
:
"github.com/modern-go/reflect2"
,
"ImportPath"
:
"github.com/modern-go/reflect2"
,
"Rev"
:
"
05fbef0ca5da472bbf96c9322b84a53edc03c9fd
"
"Rev"
:
"
94122c33edd36123c84d5368cfb2b69df93a0ec8
"
},
},
{
{
"ImportPath"
:
"github.com/peterbourgon/diskv"
,
"ImportPath"
:
"github.com/peterbourgon/diskv"
,
...
...
vendor/github.com/modern-go/reflect2/.travis.yml
View file @
a94ea824
...
@@ -6,6 +6,7 @@ go:
...
@@ -6,6 +6,7 @@ go:
before_install
:
before_install
:
-
go get -t -v ./...
-
go get -t -v ./...
-
go get -t -v github.com/modern-go/reflect2-tests/...
script
:
script
:
-
./test.sh
-
./test.sh
...
...
vendor/github.com/modern-go/reflect2/Gopkg.toml
View file @
a94ea824
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
# go-tests = true
# go-tests = true
# unused-packages = true
# unused-packages = true
ignored
=
[
"github.com/modern-go/test","github.com/modern-go/test/must","github.com/modern-go/test/should"
]
ignored
=
[]
[[constraint]]
[[constraint]]
name
=
"github.com/modern-go/concurrent"
name
=
"github.com/modern-go/concurrent"
...
...
vendor/github.com/modern-go/reflect2/reflect2.go
View file @
a94ea824
...
@@ -150,6 +150,9 @@ func (cfg *frozenConfig) TypeOf(obj interface{}) Type {
...
@@ -150,6 +150,9 @@ func (cfg *frozenConfig) TypeOf(obj interface{}) Type {
}
}
func
(
cfg
*
frozenConfig
)
Type2
(
type1
reflect
.
Type
)
Type
{
func
(
cfg
*
frozenConfig
)
Type2
(
type1
reflect
.
Type
)
Type
{
if
type1
==
nil
{
return
nil
}
cacheKey
:=
uintptr
(
unpackEFace
(
type1
)
.
data
)
cacheKey
:=
uintptr
(
unpackEFace
(
type1
)
.
data
)
typeObj
,
found
:=
cfg
.
cache
.
Load
(
cacheKey
)
typeObj
,
found
:=
cfg
.
cache
.
Load
(
cacheKey
)
if
found
{
if
found
{
...
...
vendor/github.com/modern-go/reflect2/test.sh
View file @
a94ea824
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
set
-e
set
-e
echo
""
>
coverage.txt
echo
""
>
coverage.txt
for
d
in
$(
go list
.
/... |
grep
-v
vendor
)
;
do
for
d
in
$(
go list
github.com/modern-go/reflect2-tests
/... |
grep
-v
vendor
)
;
do
go
test
-coverprofile
=
profile.out
-coverpkg
=
github.com/modern-go/reflect2
$d
go
test
-coverprofile
=
profile.out
-coverpkg
=
github.com/modern-go/reflect2
$d
if
[
-f
profile.out
]
;
then
if
[
-f
profile.out
]
;
then
cat
profile.out
>>
coverage.txt
cat
profile.out
>>
coverage.txt
...
...
vendor/github.com/modern-go/reflect2/type_map.go
View file @
a94ea824
...
@@ -4,6 +4,7 @@ import (
...
@@ -4,6 +4,7 @@ import (
"reflect"
"reflect"
"runtime"
"runtime"
"strings"
"strings"
"sync"
"unsafe"
"unsafe"
)
)
...
@@ -15,10 +16,17 @@ func typelinks1() [][]unsafe.Pointer
...
@@ -15,10 +16,17 @@ func typelinks1() [][]unsafe.Pointer
//go:linkname typelinks2 reflect.typelinks
//go:linkname typelinks2 reflect.typelinks
func
typelinks2
()
(
sections
[]
unsafe
.
Pointer
,
offset
[][]
int32
)
func
typelinks2
()
(
sections
[]
unsafe
.
Pointer
,
offset
[][]
int32
)
var
types
=
map
[
string
]
reflect
.
Type
{}
// initOnce guards initialization of types and packages
var
packages
=
map
[
string
]
map
[
string
]
reflect
.
Type
{}
var
initOnce
sync
.
Once
var
types
map
[
string
]
reflect
.
Type
var
packages
map
[
string
]
map
[
string
]
reflect
.
Type
// discoverTypes initializes types and packages
func
discoverTypes
()
{
types
=
make
(
map
[
string
]
reflect
.
Type
)
packages
=
make
(
map
[
string
]
map
[
string
]
reflect
.
Type
)
func
init
()
{
ver
:=
runtime
.
Version
()
ver
:=
runtime
.
Version
()
if
ver
==
"go1.5"
||
strings
.
HasPrefix
(
ver
,
"go1.5."
)
{
if
ver
==
"go1.5"
||
strings
.
HasPrefix
(
ver
,
"go1.5."
)
{
loadGo15Types
()
loadGo15Types
()
...
@@ -90,11 +98,13 @@ type emptyInterface struct {
...
@@ -90,11 +98,13 @@ type emptyInterface struct {
// TypeByName return the type by its name, just like Class.forName in java
// TypeByName return the type by its name, just like Class.forName in java
func
TypeByName
(
typeName
string
)
Type
{
func
TypeByName
(
typeName
string
)
Type
{
initOnce
.
Do
(
discoverTypes
)
return
Type2
(
types
[
typeName
])
return
Type2
(
types
[
typeName
])
}
}
// TypeByPackageName return the type by its package and name
// TypeByPackageName return the type by its package and name
func
TypeByPackageName
(
pkgPath
string
,
name
string
)
Type
{
func
TypeByPackageName
(
pkgPath
string
,
name
string
)
Type
{
initOnce
.
Do
(
discoverTypes
)
pkgTypes
:=
packages
[
pkgPath
]
pkgTypes
:=
packages
[
pkgPath
]
if
pkgTypes
==
nil
{
if
pkgTypes
==
nil
{
return
nil
return
nil
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment