Commit 4790ecf
Reach State only through the statics in AggregateTable
Addresses the review comments on #12312, with the API additions made in
#12101 and percolated here:
state.sizeManager.size() -> Hashtable.size(state)
... == 0 -> Hashtable.isEmpty(state)
bucketFor(state.buckets, hash) -> bucketFor(state, hash)
insertHeadEntryFor(state.buckets, ...) -> insertReserved(state, ...)
forEach(state.buckets, ...) -> forEach(state, ...)
No reference to state.buckets or state.sizeManager remains -- what State
holds is now its own business. Also drops the field comment that
re-documented the eviction cursor living inside it.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent d140558 commit 4790ecf
1 file changed
Lines changed: 6 additions & 11 deletions
Lines changed: 6 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | 34 | | |
40 | 35 | | |
41 | 36 | | |
| |||
59 | 54 | | |
60 | 55 | | |
61 | 56 | | |
62 | | - | |
| 57 | + | |
63 | 58 | | |
64 | 59 | | |
65 | 60 | | |
66 | | - | |
| 61 | + | |
67 | 62 | | |
68 | 63 | | |
69 | 64 | | |
| |||
74 | 69 | | |
75 | 70 | | |
76 | 71 | | |
77 | | - | |
| 72 | + | |
78 | 73 | | |
79 | 74 | | |
80 | 75 | | |
| |||
87 | 82 | | |
88 | 83 | | |
89 | 84 | | |
90 | | - | |
| 85 | + | |
91 | 86 | | |
92 | 87 | | |
93 | 88 | | |
| |||
109 | 104 | | |
110 | 105 | | |
111 | 106 | | |
112 | | - | |
| 107 | + | |
113 | 108 | | |
114 | 109 | | |
115 | 110 | | |
| |||
118 | 113 | | |
119 | 114 | | |
120 | 115 | | |
121 | | - | |
| 116 | + | |
122 | 117 | | |
123 | 118 | | |
124 | 119 | | |
| |||
0 commit comments