debug warnings: consolidate warn_slowpath and warn_on_slowpath