2 writes to m_objs
dotnet-svcutil-lib (2)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ObjectToIdCache.cs (2)
23
m_objs
= new Object[m_ids.Length];
117
m_objs
= new Object[size];
17 references to m_objs
dotnet-svcutil-lib (17)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ObjectToIdCache.cs (17)
38
m_objs
[pos] = obj;
40
if (m_currentCount >= (
m_objs
.Length - 1))
62
m_objs
[pos] = newObj;
70
int pos = ((hashcode & 0x7FFFFFFF) %
m_objs
.Length);
73
if (
m_objs
[i] == null)
78
if (
m_objs
[i] == obj)
83
if (i == (
m_objs
.Length - 1))
93
int hashcode = RuntimeHelpers.GetHashCode(
m_objs
[pos]);
96
j = (i + 1) %
m_objs
.Length;
97
if (
m_objs
[j] == null || RuntimeHelpers.GetHashCode(
m_objs
[j]) != hashcode)
99
m_objs
[pos] =
m_objs
[i];
101
m_objs
[i] = null;
113
int size = GetPrime(
m_objs
.Length + 1); // The lookup does an inherent doubling
115
object[] oldObjs =
m_objs
;
126
m_objs
[pos] = obj;