X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fcore.h;h=594026f6cc2cec7a0300c9e3318a4cfa9fd9861c;hb=c8617f57d0413beb2890e94dabe227cef9c5ddad;hp=57df1cbc8c878932094f8b2940a7888bbe506641;hpb=baa0eaf21221dc564088c37b228c620c298aeaa1;p=sbcl.git diff --git a/src/runtime/core.h b/src/runtime/core.h index 57df1cb..594026f 100644 --- a/src/runtime/core.h +++ b/src/runtime/core.h @@ -17,11 +17,11 @@ struct ndir_entry { #ifndef LISP_FEATURE_ALPHA - long identifier; - long nwords; - long data_page; - long address; - long page_count; + sword_t identifier; + sword_t nwords; + sword_t data_page; + sword_t address; + sword_t page_count; #else u32 identifier; u32 nwords; @@ -31,6 +31,16 @@ struct ndir_entry { #endif }; +/* Tri-state flag to determine whether we attempt to mark pages + * as targets for virtual memory deduplication (ala MADV_MERGEABLE + * on Linux). + * + * 1: Yes + * 0: No + * -1: default, yes for compressed cores, no otherwise. + */ +extern int merge_core_pages; + extern lispobj load_core_file(char *file, os_vm_offset_t offset); extern os_vm_offset_t search_for_embedded_core(char *file);