def disable(self):
        """
        Context manager to temporarily disable flushing pending deallocation.
        This can be nested.
        """
        self._disable_count += 1
        try:
            yield
        finally:
            self._disable_count -= 1
            assert self._disable_count >= 0

        Context manager to temporarily disable flushing pending deallocation.
        This can be nested.
        
numba/cuda/cudadrv/driver.py