@@ -410,12 +410,6 @@ private void CreateNodeCaches()
410410
411411 _shadowConcreteMethods = new ShadowConcreteMethodHashtable ( this ) ;
412412
413- _shadowConcreteUnboxingMethods = new NodeCache < MethodDesc , ShadowConcreteUnboxingThunkNode > ( method =>
414- {
415- MethodDesc canonMethod = method . GetCanonMethodTarget ( CanonicalFormKind . Specific ) ;
416- return new ShadowConcreteUnboxingThunkNode ( method , MethodEntrypoint ( canonMethod , true ) ) ;
417- } ) ;
418-
419413 _virtMethods = new VirtualMethodUseHashtable ( this ) ;
420414
421415 _variantMethods = new NodeCache < MethodDesc , VariantInterfaceMethodUseNode > ( ( MethodDesc method ) =>
@@ -1159,13 +1153,14 @@ public IMethodNode ExactCallableAddressTakenAddress(MethodDesc method, bool isUn
11591153 return AddressTakenMethodEntrypoint ( method , isUnboxingStub ) ;
11601154 }
11611155
1162- public IMethodNode CanonicalEntrypoint ( MethodDesc method , bool isUnboxingStub = false )
1156+ public IMethodNode CanonicalEntrypoint ( MethodDesc method )
11631157 {
11641158 MethodDesc canonMethod = method . GetCanonMethodTarget ( CanonicalFormKind . Specific ) ;
1165- if ( method != canonMethod )
1166- return ShadowConcreteMethod ( method , isUnboxingStub ) ;
1159+ if ( method != canonMethod ) {
1160+ return ShadowConcreteMethod ( method ) ;
1161+ }
11671162 else
1168- return MethodEntrypoint ( method , isUnboxingStub ) ;
1163+ return MethodEntrypoint ( method ) ;
11691164 }
11701165
11711166 private NodeCache < MethodDesc , GVMDependenciesNode > _gvmDependenciesNode ;
@@ -1284,13 +1279,9 @@ protected override ShadowConcreteMethodNode CreateValueFromKey(MethodDesc key) =
12841279 }
12851280
12861281 private ShadowConcreteMethodHashtable _shadowConcreteMethods ;
1287- private NodeCache < MethodDesc , ShadowConcreteUnboxingThunkNode > _shadowConcreteUnboxingMethods ;
1288- public IMethodNode ShadowConcreteMethod ( MethodDesc method , bool isUnboxingStub = false )
1282+ public IMethodNode ShadowConcreteMethod ( MethodDesc method )
12891283 {
1290- if ( isUnboxingStub )
1291- return _shadowConcreteUnboxingMethods . GetOrAdd ( method ) ;
1292- else
1293- return _shadowConcreteMethods . GetOrCreateValue ( method ) ;
1284+ return _shadowConcreteMethods . GetOrCreateValue ( method ) ;
12941285 }
12951286
12961287 private static readonly string [ ] [ ] s_helperEntrypointNames = new string [ ] [ ] {
0 commit comments