diff options
author | 2019-08-20 10:34:02 +0100 | |
---|---|---|
committer | 2019-09-01 21:08:43 +0000 | |
commit | 87fb032ee1e7ae98df26c646c450ef44e23fc805 (patch) | |
tree | 6754b2d2a0e38277885a691d1be6f0d796478cc7 /runtime/jit/debugger_interface.cc | |
parent | a86a5d162e6b59a32e8ea7991e6c8a157aca5a0a (diff) |
Fix JIT data dual mapping for apps.
We don't use it now, but it would be nice to make it functional.
Mark the read-only memory as const, and fix the compile errors.
Test: test.py -b --host --jit
Bug: 119800099
Change-Id: Ic1c45072f3c97f560e843f95fb87b95f754c6e03
Diffstat (limited to 'runtime/jit/debugger_interface.cc')
-rw-r--r-- | runtime/jit/debugger_interface.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/runtime/jit/debugger_interface.cc b/runtime/jit/debugger_interface.cc index fd1d9a69a0..24ca0fc1e1 100644 --- a/runtime/jit/debugger_interface.cc +++ b/runtime/jit/debugger_interface.cc @@ -174,9 +174,7 @@ struct JitNativeInfo { static JITDescriptor& Descriptor() { return __jit_debug_descriptor; } static void NotifyNativeDebugger() { __jit_debug_register_code_ptr(); } static const void* Alloc(size_t size) { return Memory()->AllocateData(size); } - static void Free(const void* ptr) { - Memory()->FreeData(const_cast<uint8_t*>(reinterpret_cast<const uint8_t*>(ptr))); - } + static void Free(const void* ptr) { Memory()->FreeData(reinterpret_cast<const uint8_t*>(ptr)); } static void Free(void* ptr) = delete; template<class T> static T* Writable(const T* v) { return const_cast<T*>(Memory()->GetWritableDataAddress(v)); |