A crane comprising a luffing jib and a lifting cylinder , said lifting cylinder extending according to a longitudinal axis and comprising a cylinder body mechanically connected to a structural element of the crane and a movable rod hinged on the luffing jib , wherein the movable rod is displaceable within the cylinder body between at least one deployed position and at least one retracted position to displace the luffing job in elevation and in lowering between at least one raised configuration and at least one lowered configuration, said crane being characterized in that it further comprises a locking device adapted to cooperate with said lifting cylinder to mechanically lock the movable rod in a safety deployed position and thus block the luffing jib in a safety raised configuration, wherein said locking device comprises a spacer provided with a proximal portion hinged on the jib and with a distal portion supporting a stop , wherein said spacer is pivotally movable on the jib between: - a release position in which the spacer is offset with respect to the lifting cylinder so that its distal portion is shifted away from the lifting cylinder , thereby enabling the movable rod to be displaced within the cylinder body and to act on the displacement of the luffing jib ; and - a locking position in which the spacer is folded on the lifting cylinder so that the stop is adapted to bear on the cylinder body after a retraction of the movable rod ; wherein said cylinder body includes, at a front end crossed by the movable rod , a bearing device comprising: - a bearing crown having an annular upper surface forming a bearing surface for the stop ; and - a support ring fixedly mounted on the front end of the cylinder body , wherein the bearing crown is coupled to the support ring according to a ball-joint connection with three rotational degrees of freedom; and in that the movable rod is pivotally hinged on the jib according to a main pivot axis , and the proximal portion of the spacer is hinged on the jib according to a pivot axis aligned on said main pivot axis by means of a setting mechanical system enabling a setting of the alignment between said pivot axes, so that, in a locking phase, the stop bears on the bearing surface of the bearing crown so that the spacer fixedly holds the movable rod in the safety deployed position to lock the luffing jib in the safety raised configuration, wherein said locking device is compressed between, on the one hand, the body of the cylinder and on the other hand the jib with a compressive forces pathway aligned on the longitudinal axis of the lifting cylinder , on the one hand, thanks to the bearing device which enables a setting of the bearing of the stop on the body of the cylinder and, on the other hand, thanks to the setting mechanical system which enables a setting of the alignment of the pivot axes of the movable rod and of the spacer . - a release position in which the spacer is offset with respect to the lifting cylinder so that its distal portion is shifted away from the lifting cylinder , thereby enabling the movable rod to be displaced within the cylinder body and to act on the displacement of the luffing jib ; and - a locking position in which the spacer is folded on the lifting cylinder so that the stop is adapted to bear on the cylinder body after a retraction of the movable rod ; - a bearing crown having an annular upper surface forming a bearing surface for the stop ; and - a support ring fixedly mounted on the front end of the cylinder body , wherein the bearing crown is coupled to the support ring according to a ball-joint connection with three rotational degrees of freedom; <EOS>