2 writes to hashBuckets
System.Windows.Forms (2)
winforms\Managed\System\WinForms\NativeWindow.cs (2)
121
hashBuckets
= new HandleBucket[hashSize];
926
hashBuckets
= newBuckets;
40 references to hashBuckets
System.Windows.Forms (40)
winforms\Managed\System\WinForms\NativeWindow.cs (40)
360
uint hashcode = InitHash(handle,
hashBuckets
.Length, out seed, out incr);
369
int bucketNumber = (int)(seed % (uint)
hashBuckets
.Length);
371
if (emptySlotNumber == -1 && (
hashBuckets
[bucketNumber].handle == new IntPtr(-1)) && (
hashBuckets
[bucketNumber].hash_coll < 0))
376
if ((
hashBuckets
[bucketNumber].handle == IntPtr.Zero) ||
377
(
hashBuckets
[bucketNumber].handle == new IntPtr(-1) && ((
hashBuckets
[bucketNumber].hash_coll & unchecked(0x80000000)) == 0))) {
385
hashBuckets
[bucketNumber].window = root;
386
hashBuckets
[bucketNumber].handle = handle;
390
hashBuckets
[bucketNumber].hash_coll |= (int)hashcode;
398
if (((
hashBuckets
[bucketNumber].hash_coll & 0x7FFFFFFF) == hashcode) && handle ==
hashBuckets
[bucketNumber].handle) {
399
GCHandle prevWindow =
hashBuckets
[bucketNumber].window;
408
hashBuckets
[bucketNumber].window = root;
422
hashBuckets
[bucketNumber].hash_coll |= unchecked((int)0x80000000);
427
} while (++ntry <
hashBuckets
.Length);
432
hashBuckets
[emptySlotNumber].window = root;
433
hashBuckets
[emptySlotNumber].handle = handle;
437
hashBuckets
[emptySlotNumber].hash_coll |= (int)hashcode;
889
int oldhashsize =
hashBuckets
.Length;
902
HandleBucket oldb =
hashBuckets
[nb];
995
HandleBucket[] buckets =
hashBuckets
;
1082
for (int i = 0; i <
hashBuckets
.Length; i++) {
1083
HandleBucket b =
hashBuckets
[i];
1105
hashBuckets
[i].handle = IntPtr.Zero;
1106
hashBuckets
[i].hash_coll = 0;
1195
uint hashcode = InitHash(handle,
hashBuckets
.Length, out seed, out incr);
1202
bn = (int)(seed % (uint)
hashBuckets
.Length); // bucketNumber
1203
b =
hashBuckets
[bn];
1224
if (
hashBuckets
[bn].window.IsAllocated) {
1225
hashBuckets
[bn].window.Free();
1228
hashBuckets
[bn].window = GCHandle.Alloc(prevWindow, GCHandleType.Weak);
1233
hashBuckets
[bn].hash_coll &= unchecked((int)0x80000000);
1234
if (
hashBuckets
[bn].hash_coll != 0) {
1235
hashBuckets
[bn].handle = new IntPtr(-1);
1238
hashBuckets
[bn].handle = IntPtr.Zero;
1241
if (
hashBuckets
[bn].window.IsAllocated) {
1242
hashBuckets
[bn].window.Free();
1251
} while (
hashBuckets
[bn].hash_coll < 0 && ++ntry <
hashBuckets
.Length);