Restrict allocation of executable memory by DebuggerHeap
authorEugene <Eugene.Zemtsov@microsoft.com>
Thu, 5 Nov 2015 02:21:45 +0000 (18:21 -0800)
committerEugene <Eugene.Zemtsov@microsoft.com>
Thu, 5 Nov 2015 02:38:00 +0000 (18:38 -0800)
commit789f44c21ad73f69ad4e2df23944d47fca900a0c
tree6819aed9c4f405d81c5381b172b5fa0ce422f27e
parent9fd8dca9c31c3cd2fffe2e5d27b8b10fddbf7bed
Restrict allocation of executable memory by DebuggerHeap

DebuggerHeap is a common class that is used for both executable and
non-executable memory allocations by debugging infrustructure.
On Windows, OS supports concept of executable heap and CLR doesn't need
to do anything extra for each executable allocation. On Linux/OSX
this is not true. That's why this changes preserves fExecutable flag for each heap
and makes sure that we mark memory as executable only when it is necessary.
src/debug/ee/debugger.cpp
src/debug/ee/debugger.h