Online Data-Driven Control Of Safety-Critical Systems