Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ class F1
[MethodImpl(MethodImplOptions.NoInlining)] // The exception is thrown when restoring the caller with R2R
public F1()
{
var f2 = new F2();
// Keep the allocation observable so it isn't removed before the type is loaded
GC.KeepAlive(new F2());
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,15 @@
.method public static void Test_Scenario1() cil managed noinlining
{
ldtoken BaseScenario1
call string [TypeHierarchyCommonCs]Statics::MakeName(valuetype [System.Runtime]System.RuntimeTypeHandle)
pop
ret
} // end of method Test_Scenario1

.method public static void Test_Scenario2() cil managed noinlining
{
ldtoken BaseScenario2
call string [TypeHierarchyCommonCs]Statics::MakeName(valuetype [System.Runtime]System.RuntimeTypeHandle)
pop
ret
} // end of method Test_Scenario1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
.method public static void Test_Scenario1() cil managed noinlining
{
ldtoken BaseScenario1
call string [TypeHierarchyCommonCs]Statics::MakeName(valuetype [System.Runtime]System.RuntimeTypeHandle)
pop
ret
} // end of method Test_Scenario1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,15 @@
.method public static void Test_Scenario1() cil managed noinlining
{
ldtoken class InterfaceScenario1`1<object>
call string [TypeHierarchyCommonCs]Statics::MakeName(valuetype [System.Runtime]System.RuntimeTypeHandle)
pop
ret
} // end of method Test_Scenario1

.method public static void Test_Scenario2() cil managed noinlining
{
ldtoken class InterfaceScenario2`1<object>
call string [TypeHierarchyCommonCs]Statics::MakeName(valuetype [System.Runtime]System.RuntimeTypeHandle)
pop
ret
} // end of method Test_Scenario1
Expand Down
Loading