Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Revert "Store this size in a fixed sized, as potentially this could overflow"
authordegomme <augustin.degomme@unibas.ch>
Wed, 15 Feb 2017 01:22:10 +0000 (02:22 +0100)
committerdegomme <augustin.degomme@unibas.ch>
Wed, 15 Feb 2017 01:22:10 +0000 (02:22 +0100)
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.

src/smpi/private.h
src/smpi/smpi_bench.cpp

index b2ea681..a2c1256 100644 (file)
@@ -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 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);
 
 XBT_PRIVATE void smpi_switch_data_segment(int dest);
 XBT_PRIVATE void smpi_really_switch_data_segment(int dest);
index 41171c4..a4f0521 100644 (file)
@@ -83,7 +83,7 @@ double smpi_host_speed;
 
 int smpi_loaded_page = -1;
 char* smpi_start_data_exe = nullptr;
 
 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;
 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();
 
 
   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;
 
   if (smpi_size_data_exe == 0){//no need to switch
     smpi_privatize_global_variables=false;