Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve accuracy of reported memsizes
Following from the improvements for RE2::MatchData's reported memsize with ObjectSpace.dump and ObjectSpace.memsize_of, do the same for RE2::Regexp, RE2::Set and RE2::Scanner. Previously, we used the size of the pointer in the data structure rather than the size of the allocated memory.
- Loading branch information