RFR: 8274400: HotSpot Style Guide should permit use of alignof [v7]

Julian Waters jwaters at openjdk.org
Tue Jan 24 09:21:37 UTC 2023


> The alignof operator was added by C++11. It returns the alignment for the given type. Various metaprogramming usages exist, in particular when using std::aligned_storage. Use of this operator should be permitted in HotSpot code.

Julian Waters has updated the pull request incrementally with one additional commit since the last revision:

  Oof

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/11761/files
  - new: https://git.openjdk.org/jdk/pull/11761/files/29d73366..03e1e763

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=11761&range=06
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=11761&range=05-06

  Stats: 2 lines in 2 files changed: 0 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/11761.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/11761/head:pull/11761

PR: https://git.openjdk.org/jdk/pull/11761


More information about the hotspot-dev mailing list