Skip to content
Merged
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 @@ -21,7 +21,7 @@ namespace ILCompiler
public class MstatObjectDumper : ObjectDumper
{
private const int VersionMajor = 1;
private const int VersionMinor = 0;
private const int VersionMinor = 1;

private readonly string _fileName;
private readonly TypeSystemMetadataEmitter _emitter;
Expand Down Expand Up @@ -82,7 +82,8 @@ private void SerializeSimpleEntry(InstructionEncoder encoder, TypeSystemEntity e
{
encoder.OpCode(ILOpCode.Ldtoken);
encoder.Token(_emitter.EmitMetadataHandleForTypeSystemEntity(entity));
encoder.LoadString(_emitter.GetUserStringHandle(mangledName));
// Would like to do this but mangled names are very long and go over the 16 MB string limit quickly.
// encoder.LoadString(_emitter.GetUserStringHandle(mangledName));
encoder.LoadConstantI4(blob.Data.Length);
}

Expand All @@ -93,7 +94,8 @@ internal override void End()
{
methods.OpCode(ILOpCode.Ldtoken);
methods.Token(_emitter.EmitMetadataHandleForTypeSystemEntity(m.Key));
methods.LoadString(_emitter.GetUserStringHandle(m.Value.MangledName));
// Would like to do this but mangled names are very long and go over the 16 MB string limit quickly.
// methods.LoadString(_emitter.GetUserStringHandle(m.Value.MangledName));
methods.LoadConstantI4(m.Value.Size);
methods.LoadConstantI4(m.Value.GcInfoSize);
methods.LoadConstantI4(_methodEhInfo.GetValueOrDefault(m.Key));
Expand Down