舍命 (shěmìng) literally means 'to relinquish one's life.' It can describe literal self-sacrifice or figuratively putting in maximum effort without reserve. Compare
拼命 (pīnmìng), which means to go all-out/risk everything but is more commonly used colloquially.