diff options
| author | Andrea Corallo | 2022-03-30 17:13:27 +0200 |
|---|---|---|
| committer | Andrea Corallo | 2022-03-30 17:15:03 +0200 |
| commit | 2ec77fcd8f9b4ef92ad68175c60bd85e4221bb96 (patch) | |
| tree | 32f1780ee0d99e96568780150b8544805a8b29b2 /src | |
| parent | 2a081274e11246349a47e69701f407b174cc9293 (diff) | |
| download | emacs-2ec77fcd8f9b4ef92ad68175c60bd85e4221bb96.tar.gz emacs-2ec77fcd8f9b4ef92ad68175c60bd85e4221bb96.zip | |
* src/pdumper.c (dump_get_max_page_size): Rename from 'dump_get_page_size'.
Diffstat (limited to 'src')
| -rw-r--r-- | src/pdumper.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/pdumper.c b/src/pdumper.c index d9dc13770cd..24393e03665 100644 --- a/src/pdumper.c +++ b/src/pdumper.c | |||
| @@ -162,7 +162,7 @@ ptrdiff_t_to_dump_off (ptrdiff_t value) | |||
| 162 | /* Worst-case allocation granularity on any system that might load | 162 | /* Worst-case allocation granularity on any system that might load |
| 163 | this dump. */ | 163 | this dump. */ |
| 164 | static int | 164 | static int |
| 165 | dump_get_page_size (void) | 165 | dump_get_max_page_size (void) |
| 166 | { | 166 | { |
| 167 | return 64 * 1024; | 167 | return 64 * 1024; |
| 168 | } | 168 | } |
| @@ -4210,7 +4210,7 @@ types. */) | |||
| 4210 | eassert (dump_queue_empty_p (&ctx->dump_queue)); | 4210 | eassert (dump_queue_empty_p (&ctx->dump_queue)); |
| 4211 | 4211 | ||
| 4212 | dump_off discardable_end = ctx->offset; | 4212 | dump_off discardable_end = ctx->offset; |
| 4213 | dump_align_output (ctx, dump_get_page_size ()); | 4213 | dump_align_output (ctx, dump_get_max_page_size ()); |
| 4214 | ctx->header.cold_start = ctx->offset; | 4214 | ctx->header.cold_start = ctx->offset; |
| 4215 | 4215 | ||
| 4216 | /* Start the cold section. This section contains bytes that should | 4216 | /* Start the cold section. This section contains bytes that should |
| @@ -4928,7 +4928,7 @@ dump_mmap_contiguous (struct dump_memory_map *maps, int nr_maps) | |||
| 4928 | return true; | 4928 | return true; |
| 4929 | 4929 | ||
| 4930 | size_t total_size = 0; | 4930 | size_t total_size = 0; |
| 4931 | int worst_case_page_size = dump_get_page_size (); | 4931 | int worst_case_page_size = dump_get_max_page_size (); |
| 4932 | 4932 | ||
| 4933 | for (int i = 0; i < nr_maps; ++i) | 4933 | for (int i = 0; i < nr_maps; ++i) |
| 4934 | { | 4934 | { |
| @@ -5616,7 +5616,7 @@ pdumper_load (const char *dump_filename, char *argv0) | |||
| 5616 | err = PDUMPER_LOAD_OOM; | 5616 | err = PDUMPER_LOAD_OOM; |
| 5617 | 5617 | ||
| 5618 | adj_discardable_start = header->discardable_start; | 5618 | adj_discardable_start = header->discardable_start; |
| 5619 | dump_page_size = dump_get_page_size (); | 5619 | dump_page_size = dump_get_max_page_size (); |
| 5620 | /* Snap to next page boundary. */ | 5620 | /* Snap to next page boundary. */ |
| 5621 | adj_discardable_start = ROUNDUP (adj_discardable_start, dump_page_size); | 5621 | adj_discardable_start = ROUNDUP (adj_discardable_start, dump_page_size); |
| 5622 | eassert (adj_discardable_start % dump_page_size == 0); | 5622 | eassert (adj_discardable_start % dump_page_size == 0); |