Update global_memory_used. We have to do this with atomic_add as the global value can change outside of LOCK_status. */
| 1181 | global value can change outside of LOCK_status. |
| 1182 | */ |
| 1183 | static inline void update_global_memory_status(int64 size) |
| 1184 | { |
| 1185 | DBUG_PRINT("info", ("global memory_used: %lld size: %lld", |
| 1186 | (longlong) global_status_var.global_memory_used, |
| 1187 | size)); |
| 1188 | // workaround for gcc 4.2.4-1ubuntu4 -fPIE (from DEB_BUILD_HARDENING=1) |
| 1189 | int64 volatile * volatile ptr= &global_status_var.global_memory_used; |
| 1190 | my_atomic_add64_explicit(ptr, size, MY_MEMORY_ORDER_RELAXED); |
| 1191 | } |
| 1192 | |
| 1193 | |
| 1194 | static inline bool is_supported_parser_charset(CHARSET_INFO *cs) |
no outgoing calls
no test coverage detected