JDK-8239112 : [8u] clean up empty-body warnings in HotSpot
  • Type: Bug
  • Component: hotspot
  • Sub-Component: other
  • Affected Version: 8
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2020-02-15
  • Updated: 2024-03-22
  • Resolved: 2020-02-17
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 8
8u251Fixed
Description
There are 4 cases across 2 files (mallocSiteTable.cpp and objectMonitor.cpp) where empty-body warnings cause compilation failure on recent versions of Xcode. We should fix these as part of our toolchain upgrade effort.

This is a partial backport of Paul Hohensee's massive cleanup [0] of Xcode warnings. A complete backport of that chnageset is well beyond the scope of our toolchain upgrade work. But we do want to clean up as many warnings as we can with minimal risk.

[0] http://hg.openjdk.java.net/jdk10/jdk10/hotspot/rev/c044f8d03932
Comments
Closing as fixed -> Not verified as its a no-reg
03-05-2020