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

Julian Waters jwaters at openjdk.org
Mon Jan 23 09:52:29 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:

  Further Changes

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

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

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

  Stats: 4 lines in 2 files changed: 0 ins; 0 del; 4 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