sanity check page size at runtime

This commit is contained in:
Daniel Micay committed 2018-08-29 11:00:18 -04:00
1 parent d779d41721
commit 0e2f3d1015
1 file changed
+4
+4
View File
@@ -594,6 +594,10 @@ COLD static void init_slow_path(void) {
fatal_error("pthread_atfork failed");
}
if (sysconf(_SC_PAGESIZE) != PAGE_SIZE) {
fatal_error("page size mismatch");
}
struct random_state rng;
random_state_init(&rng);