JDK-8252584 : HotSpot Style Guide should permit alignas
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: other
  • Affected Version: 16
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-08-31
  • Updated: 2022-12-05
  • Resolved: 2022-11-30
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 20
20 b26Fixed
Related Reports
Blocks :  
Relates :  
Relates :  
Description
Add alignas to the permitted features set, but only for variables, not for classes.  Classes have the problem that dynamic allocation is unaware of alignment restrictions.  (That's fixed in C++17.  Though we might be able to add it ourselves for our allocators.)
Comments
Changeset: 22f5d014 Author: Julian Waters <jwaters@openjdk.org> Date: 2022-11-30 07:37:22 +0000 URL: https://git.openjdk.org/jdk/commit/22f5d014287a5cae2c0503ab3f9730f64725605a
30-11-2022

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/11404 Date: 2022-11-29 01:03:55 +0000
29-11-2022

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/11315 Date: 2022-11-23 10:24:42 +0000
23-11-2022

Has there been any recent discussion regarding this yet? Unlike the issues with C++ attributes brought up in JDK-8295146, this is a relatively less disruptive change with less detrimental code impact on HotSpot as a whole
18-11-2022