Use %p for pthread pointers in debugging output
[sbcl.git] / src / runtime / core.h
index efda49b..3f05cd5 100644 (file)
@@ -16,7 +16,7 @@
 #include "runtime.h"
 
 struct ndir_entry {
-#ifndef alpha
+#ifndef LISP_FEATURE_ALPHA
     long identifier;
     long nwords;
     long data_page;
@@ -31,7 +31,18 @@ struct ndir_entry {
 #endif
 };
 
-extern lispobj load_core_file(char *file);
+/* 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);
 
 /* arbitrary string identifying this build, embedded in .core files to
  * prevent people mismatching a runtime built e.g. with :SB-SHOW