Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(556)

Unified Diff: third_party/android_crazy_linker/src/include/crazy_linker.h

Issue 958473003: Asynchronously pre-fault the native library pages. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Whitespace. Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/android_crazy_linker/src/include/crazy_linker.h
diff --git a/third_party/android_crazy_linker/src/include/crazy_linker.h b/third_party/android_crazy_linker/src/include/crazy_linker.h
index 07a41d7b31babe7695aaee486deedaf4dc02f7e4..94173cfab714fdb44af3258cc208d493d042d993 100644
--- a/third_party/android_crazy_linker/src/include/crazy_linker.h
+++ b/third_party/android_crazy_linker/src/include/crazy_linker.h
@@ -361,6 +361,20 @@ crazy_status_t crazy_library_file_path_in_zip_file(const char* lib_name,
size_t buffer_size)
_CRAZY_PUBLIC;
+
+// Return the offset and size of a library stored in the zip file;
+crazy_status_t crazy_library_offset_size_in_zip_file(const char* zip_filename,
+ const char* lib_name,
+ int* offset, int* size)
+ _CRAZY_PUBLIC;
+
+// Fault a library in memory.
+// |filename| file to fault in.
+// |offset| start offset in the file.
+// |size| size of the file section to consider. -1 for the whole file.
+crazy_status_t crazy_prefault_library(const char* filename, int offset,
+ int size) _CRAZY_PUBLIC;
+
// Check whether |lib_name| is page aligned and uncompressed in |zipfile_name|.
crazy_status_t crazy_linker_check_library_is_mappable_in_zip_file(
const char* zipfile_name,

Powered by Google App Engine
This is Rietveld 408576698