diff options
author | 2017-08-05 16:03:03 -0700 | |
---|---|---|
committer | 2017-08-14 17:47:25 -0700 | |
commit | 120aa286ab6adf3e76a31bc61fb4e583e5158d71 (patch) | |
tree | 07f1546ce7a090af8c88110598920769bfb5e669 /runtime/utils.h | |
parent | 5bfead584f56b2a1cfb69f78c385965ec57f7e8b (diff) |
Store layout info in dex files
Store layout info for code sections inside of the oat file. This will
be used to advise the kernel when dex files are loaded in
a follow up CL.
Added unit test in dex2oat_test.
Bug: 63178181
Test: test-art-host
(cherry-picked from commit 75c5ed6e75f70002db5fa7c609137c04dd2bdf40)
Change-Id: I4777506886bde42ff0affdac412a8395e8013a40
Diffstat (limited to 'runtime/utils.h')
-rw-r--r-- | runtime/utils.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/utils.h b/runtime/utils.h index f1f55766d6..739681d446 100644 --- a/runtime/utils.h +++ b/runtime/utils.h @@ -338,6 +338,9 @@ inline static int32_t Signum(T opnd) { return (opnd < 0) ? -1 : ((opnd == 0) ? 0 : 1); } +// Madvise the largest page aligned region within begin and end. +int MadviseLargestPageAlignedRegion(const uint8_t* begin, const uint8_t* end, int advice); + } // namespace art #endif // ART_RUNTIME_UTILS_H_ |