HACK: Don't PROT_EXEC mapped pages for java bytecode

Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
This commit is contained in:
Jeremy Huddleston Sequoia 2020-03-26 14:02:10 -07:00
parent f8461fcf12
commit abb790eaf8

View File

@ -646,7 +646,13 @@ MemRegion ReservedHeapSpace::region() const {
ReservedCodeSpace::ReservedCodeSpace(size_t r_size,
size_t rs_align,
bool large) :
#ifdef __arm64__
// TODO: Hack, etting this to false for now. Since we're using zero variant (interpreted), this should be ok.
// cf: <rdar://problem/60930577> and related
ReservedSpace(r_size, rs_align, large, /*executable*/ false) {
#else
ReservedSpace(r_size, rs_align, large, /*executable*/ true) {
#endif
MemTracker::record_virtual_memory_type((address)base(), mtCode);
}