JDK-8255579 : x86: Use cmpq(Register,Address) in safepoint_poll
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 16
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-10-29
  • Updated: 2024-12-09
  • Resolved: 2020-10-29
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 16
16 b23Fixed
Related Reports
Blocks :  
Relates :  
Description
JDK-8253180 added a new block in `safepoint_poll` that uses broken `cmpq` (JDK-8255550): it effectively does the comparison with operands swapped.

It makes sense to use the non-broken `cmpq`, as to avoid changing the condition code and thus making the code less understandable.
Comments
Changeset: 4b20e460 Author: Aleksey Shipilev <shade@openjdk.org> Date: 2020-10-29 12:25:11 +0000 URL: https://git.openjdk.java.net/jdk/commit/4b20e460
29-10-2020