1
0
mirror of https://github.com/MariaDB/server.git synced 2026-10-23 18:49:29 +03:00

workaround for incorrectly (?) generated code on

gcc 4.2.4-1ubuntu4 with -fPIE
(which is added automatically because of DEB_BUILD_HARDENING=1)
This commit is contained in:
Sergei Golubchik
2013-01-24 17:24:21 +01:00
parent 625ef45a89
commit 259a9404f3

View File

@@ -3480,7 +3480,9 @@ static void my_malloc_size_cb_func(long long size, my_bool is_thread_specific)
}
}
}
my_atomic_add64(&global_status_var.memory_used, size);
// workaround for gcc 4.2.4-1ubuntu4 -fPIE (from DEB_BUILD_HARDENING=1)
int64 volatile * volatile ptr=&global_status_var.memory_used;
my_atomic_add64(ptr, size);
}
}