mirror of
https://github.com/isc-projects/bind9.git
synced 2026-04-15 22:09:31 -04:00
The isc_mem API is one of the most commonly used APIs that didn't used ISC_REFCOUNT_DECL and ISC_REFCOUNT_IMPL macros. Replace the implementation of isc_mem_attach(), isc_mem_detach() and isc_mem_destroy() with the respective macros. This also removes the legacy isc_mem_destroy() functionality that would check whether all references had been detached from the memory context as it doesn't work reliably when using the call_rcu() API. Instead of doing this individually, call isc_mem_checkdestroyed(stderr) from the isc_mem_destroy() macro to keep the extra check that all contexts were freed when the program is exiting. |
||
|---|---|---|
| .. | ||
| dns | ||
| isc | ||
| isccc | ||
| isccfg | ||
| ns | ||
| .gitignore | ||
| Makefile.am | ||