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

Unified Diff: src/native_client/src/trusted/service_runtime/sel_ldr.h

Issue 7068021: Dynamic loading: Fill pages with halts only when they are needed (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Fix log messages Created 9 years, 7 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: src/native_client/src/trusted/service_runtime/sel_ldr.h
diff --git a/src/native_client/src/trusted/service_runtime/sel_ldr.h b/src/native_client/src/trusted/service_runtime/sel_ldr.h
index 374e4d9d91c8e95ed452b99e8e52d5beb1103b86..7c69692a139004b75811d35d3c6f958f329b96f1 100644
--- a/src/native_client/src/trusted/service_runtime/sel_ldr.h
+++ b/src/native_client/src/trusted/service_runtime/sel_ldr.h
@@ -247,6 +247,12 @@ struct NaClApp {
int use_shm_for_dynamic_text;
struct NaClDesc *text_shm;
struct NaClMutex dynamic_load_mutex;
+ /*
+ * This records which pages in text_shm have been allocated. When a
+ * page is allocated, it is filled with halt instructions and then
+ * made executable by untrusted code.
+ */
+ uint8_t *dynamic_page_bitmap;
/*
* The array of dynamic_regions is maintained in sorted order
« no previous file with comments | « src/native_client/src/trusted/service_runtime/sel_addrspace.c ('k') | src/native_client/src/trusted/service_runtime/sel_ldr.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698