JDK-8197981 : Missing return statement in __sync_val_compare_and_swap_8
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version:
    openjdk7u,8u161,9.0.4,10,11,12,15,16 openjdk7u,8u161,9.0.4,10,11,12,15,16
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • CPU: other
  • Submitted: 2018-02-15
  • Updated: 2024-12-09
  • Resolved: 2020-10-20
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 11 JDK 15 JDK 16 Other
11.0.10Fixed 15.0.2Fixed 16 b21Fixed openjdk7uFixed
Related Reports
Relates :  
Description
/builddir/build/BUILD/java-1.7.0-openjdk-1.7.0.171-2.6.13.1.el7.s390/openjdk/hotspot/src/os_cpu/linux_zero/vm/os_linux_zero.cpp: In function 'long long unsigned int __sync_val_compare_and_swap_8(volatile void*, long long unsigned int, long long unsigned int)':
/builddir/build/BUILD/java-1.7.0-openjdk-1.7.0.171-2.6.13.1.el7.s390/openjdk/hotspot/src/os_cpu/linux_zero/vm/os_linux_zero.cpp:547:3: error: no return statement in function returning non-void [-Werror=return-type]
   }
   ^
cc1plus: all warnings being treated as errors
Comments
Fix Request (11u) Same reason as for 15u.
29-10-2020

Fix Request (15u) This resolves a compilation warning. Patch applies cleanly to 15u, passes Linux x86_64 Zero bootcycle build.
26-10-2020

Changeset: b65dcfa3 Author: Aleksey Shipilev <shade@openjdk.org> Date: 2020-10-20 05:26:59 +0000 URL: https://git.openjdk.java.net/jdk/commit/b65dcfa3
20-10-2020

Partially fixed in 16 and 15u with JDK-8254144. Needs the full fix in 11u and 8u.
19-10-2020

Please note based on the JDK 12 schedule details, changing the fix version here to tbd. Please update if required. Thanks. ( http://openjdk.java.net/projects/jdk/12/ )
15-12-2018

Yeah, I'll try and get this in the newer versions.
05-12-2018

Hi [~andrew], Request your help. (Please note based on JDK 12 schedule I am checking possible deferral candidates of JDK 12 hotspot/compiler tasks - http://openjdk.java.net/projects/jdk/12/) Are you planning 8197981 fix to be in JDK 12 also? (else you may please change the 'Fix Version' in JBS to 'tbd' for now and update with a correct version later when available). Thanks.
29-11-2018

Yes. It's actually already in OpenJDK 7: http://hg.openjdk.java.net/jdk7u/jdk7u/hotspot/rev/ce3abb5889fb But needs to be forward-ported to 8u, 10u & 11. I'll do that as soon as I have a setup to build OpenJDK 11.
22-05-2018

Hi @Andrew Hughes, Request help information here. I believe you are planning to submit this 8197981 fix review and targeting the same changeset for JDK 11 itself. But otherwise if in case you are not planning this one for JDK 11, please change the 'Fix Version' to tbd_feature / tbd_update. Thank you. (JDK 11 Schedule - http://openjdk.java.net/projects/jdk/11/)
24-04-2018

That looks good to me.
15-03-2018

Yes, the fix I have is: https://icedtea.classpath.org/hg/release/icedtea7-forest-2.6/hotspot/rev/ce3abb5889fb
15-03-2018

Same code is in os_bsd_zero.cpp.
23-02-2018