This commit is contained in:
LDj3SNuD 2019-09-17 20:50:17 +02:00 committed by GitHub
commit e6a07d8119
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -251,9 +251,12 @@ namespace ARMeilleure.CodeGen.X86
codeStream.Write(buffer); codeStream.Write(buffer);
if (_aotInfo != null) if (_aotInfo != null)
{
if ((int)codeStream.Length >= Aot.MinCodeLengthToSave)
{ {
_aotInfo.WriteCode(codeStream); _aotInfo.WriteCode(codeStream);
} }
}
return codeStream.ToArray(); return codeStream.ToArray();
} }