Fix instruction groups offset on the border between cold/hot code. (dotnet/coreclr...
authorSergey Andreenko <seandree@microsoft.com>
Wed, 20 Jun 2018 01:02:11 +0000 (18:02 -0700)
committerGitHub <noreply@github.com>
Wed, 20 Jun 2018 01:02:11 +0000 (18:02 -0700)
commit3600e6a13708624261821f25df4f25ec21611a52
treec0ed796229e8e0ec3093c79d859ec4301215b0cb
parenta089c92ad3a3682c295e3e5b4e15be28cccdb0d3
Fix instruction groups offset on the border between cold/hot code. (dotnet/coreclr#17775)

* add an additional debug printing.

* add additional checks

* Clean-up checks a bit.

* fill unused allocated chunks

* clean up checks

* fix EMITTER_STATS

* optimize padding filling

call to emitCurCodeOffs(cp) is not free.

Commit migrated from https://github.com/dotnet/coreclr/commit/d10950e4bb40643f72e97e8c0a03390694b2d2a2
src/coreclr/src/jit/emit.cpp