Skip to content
Open
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 @@ -117,10 +117,12 @@ public override ObjectData GetData(NodeFactory factory, bool relocsOnly = false)
ObjectDataSignatureBuilder dataBuilder = new ObjectDataSignatureBuilder(factory, relocsOnly);
dataBuilder.AddSymbol(this);

// Optimize some of the fixups into a more compact form
// Optimize some of the fixups into a more compact form.
// The compact token forms cannot carry signature flags, so instantiating and unboxing
// stubs must use the full method signature.
ReadyToRunFixupKind fixupKind = _fixupKind;
bool optimized = false;
if (_method.Method.IsPrimaryMethodDesc() && !IsInstantiatingStub
if (_method.Method.IsPrimaryMethodDesc() && !IsInstantiatingStub && !_method.Unboxing
&& _method.ConstrainedType == null && fixupKind == ReadyToRunFixupKind.MethodEntry)
{
if (!_method.Method.HasInstantiation && !_method.Method.OwningType.HasInstantiation && !_method.Method.OwningType.IsArray)
Expand Down
Loading