Function to decrement the byte counter and decrease the bytes usage of the memory tracker.
| 137 | /// Function to decrement the byte counter and decrease the bytes usage |
| 138 | /// of the memory tracker. |
| 139 | void ReleaseBytes() { |
| 140 | if (dict_mem_tracker_ != nullptr) { |
| 141 | dict_mem_tracker_->Release(dict_bytes_cnt_memtrack_); |
| 142 | dict_bytes_cnt_ = 0; |
| 143 | dict_bytes_cnt_memtrack_ = 0; |
| 144 | num_call_track_ = 0; |
| 145 | } |
| 146 | } |
| 147 | |
| 148 | /// Used by dict-test.cc to check the usage of bytes by dictionary |
| 149 | /// is properly accounted. |