From: degomme Date: Wed, 15 Feb 2017 01:22:10 +0000 (+0100) Subject: Revert "Store this size in a fixed sized, as potentially this could overflow" X-Git-Tag: v3_15~378 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/c527cdf965177806e4b1bbdeb53a6ef17f211c55?ds=sidebyside Revert "Store this size in a fixed sized, as potentially this could overflow" This is not the bug I was looking for, and printf is annoying, so let's postpone this one for tomorrow This reverts commit a7eafe040faedcc0987b01b878672faec769d3f7. --- diff --git a/src/smpi/private.h b/src/smpi/private.h index b2ea6816cc..a2c125607f 100644 --- a/src/smpi/private.h +++ b/src/smpi/private.h @@ -412,7 +412,7 @@ extern XBT_PRIVATE double smpi_cpu_threshold; extern XBT_PRIVATE double smpi_host_speed; extern XBT_PRIVATE bool smpi_privatize_global_variables; extern XBT_PRIVATE char* smpi_start_data_exe; //start of the data+bss segment of the executable -extern XBT_PRIVATE uint64_t smpi_size_data_exe; //size of the data+bss segment of the executable +extern XBT_PRIVATE int smpi_size_data_exe; //size of the data+bss segment of the executable XBT_PRIVATE void smpi_switch_data_segment(int dest); XBT_PRIVATE void smpi_really_switch_data_segment(int dest); diff --git a/src/smpi/smpi_bench.cpp b/src/smpi/smpi_bench.cpp index 41171c436d..a4f05211ca 100644 --- a/src/smpi/smpi_bench.cpp +++ b/src/smpi/smpi_bench.cpp @@ -83,7 +83,7 @@ double smpi_host_speed; int smpi_loaded_page = -1; char* smpi_start_data_exe = nullptr; -uint64_t smpi_size_data_exe = 0; +int smpi_size_data_exe = 0; bool smpi_privatize_global_variables; double smpi_total_benched_time = 0; smpi_privatisation_region_t smpi_privatisation_regions; @@ -730,7 +730,7 @@ void smpi_initialize_global_memory_segments() smpi_get_executable_global_size(); - XBT_DEBUG ("bss+data segment found : size %zu starting at %p", smpi_size_data_exe, smpi_start_data_exe ); + XBT_DEBUG ("bss+data segment found : size %d starting at %p", smpi_size_data_exe, smpi_start_data_exe ); if (smpi_size_data_exe == 0){//no need to switch smpi_privatize_global_variables=false;