summaryrefslogtreecommitdiff
path: root/libartbase/base/mem_map.h
diff options
context:
space:
mode:
Diffstat (limited to 'libartbase/base/mem_map.h')
-rw-r--r--libartbase/base/mem_map.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/libartbase/base/mem_map.h b/libartbase/base/mem_map.h
index 20eda324e1..309da27319 100644
--- a/libartbase/base/mem_map.h
+++ b/libartbase/base/mem_map.h
@@ -261,6 +261,16 @@ class MemMap {
std::string* error_msg,
bool use_debug_name = true);
+ // Unmap the pages of a file at end and remap them to create another memory map.
+ MemMap RemapAtEnd(uint8_t* new_end,
+ const char* tail_name,
+ int tail_prot,
+ int tail_flags,
+ int fd,
+ off_t offset,
+ std::string* error_msg,
+ bool use_debug_name = true);
+
// Take ownership of pages at the beginning of the mapping. The mapping must be an
// anonymous reservation mapping, owning entire pages. The `byte_count` must not
// exceed the size of this reservation.