File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed
Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -12,9 +12,11 @@ import (
1212// You must always use the given methods.
1313type Item [T any ] struct {
1414 pool * Pool [T ]
15- cfg any
16-
1715 stat status
16+ // align 64
17+
18+ cfg any
19+ // align 64
1820
1921 val T
2022}
Original file line number Diff line number Diff line change 99
1010// UserBuffer with customizable user data structure inside.
1111type UserBuffer [USRDAT any ] struct {
12- bytes.Buffer
1312 DAT USRDAT
13+ bytes.Buffer
1414}
1515
1616type bufpooler [USRDAT any ] struct {}
Original file line number Diff line number Diff line change @@ -9,10 +9,10 @@ import (
99
1010// Pool lightweight general pool.
1111type Pool [T any ] struct {
12- pooler Pooler [T ]
13- pool sync.Pool
1412 countin int32
1513 countout int32
14+ pooler Pooler [T ]
15+ pool sync.Pool
1616 noputbak bool
1717 manudstr bool
1818}
You can’t perform that action at this time.
0 commit comments