Modified Doc
Factor out process_deferred_barriers