mirror of
https://github.com/darlinghq/darling-openjdk.git
synced 2024-11-26 22:00:25 +00:00
HACK: Don't PROT_EXEC mapped pages for java bytecode
Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
This commit is contained in:
parent
f8461fcf12
commit
abb790eaf8
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user