Only the No Space available error is checked and handled by jfr_abort(). The rest of other possible errors/failures are handled in guarantee( ).
After 8303942, the os::write returns 0 on success, -1 on failure. The errno holds the reason of the failure.
After 8303942, the os::write returns 0 on success, -1 on failure. The errno holds the reason of the failure.