backport our own copy of the ref-counting extension
2 files changed