15 lines
574 B
Diff
15 lines
574 B
Diff
--- a/art/runtime/mem_map.cc 2026-09-17 09:32:04.741988772 +0200
|
|
+++ b/art/runtime/mem_map.cc 2026-09-17 09:32:26.208150692 +0200
|
|
@@ -393,6 +393,11 @@
|
|
DCHECK(ContainedWithinExistingMap(expected_ptr, byte_count, error_msg))
|
|
<< ((error_msg != nullptr) ? *error_msg : std::string());
|
|
flags |= MAP_FIXED;
|
|
+#if !defined(ART_TARGET)
|
|
+ } else if (expected_ptr) {
|
|
+#define MAP_FIXED_NOREPLACE 0x100000
|
|
+ flags |= MAP_FIXED_NOREPLACE;
|
|
+#endif
|
|
} else {
|
|
CHECK_EQ(0, flags & MAP_FIXED);
|
|
// Don't bother checking for an overlapping region here. We'll
|