Apple's obviously not just letting the technical debt pile up. They've put a lot of effort in to addressing it in a lot of areas. Some of it hasn't resulted in a usable replacement (ZFS, discoveryd), but other areas have been modernized (LLVM, launchd, Core whatever frameworks, Gatekeeper).