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

Julian Waters jwaters at openjdk.org
Wed Jan 4 13:23:08 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 with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains ten additional commits since the last revision:

 - Hopefully final change
 - Merge remote-tracking branch 'upstream/master' into alignof
 - <type_traits>
 - Merge remote-tracking branch 'upstream/master' into alignof
 - Make section more brief
 - Merge remote-tracking branch 'upstream/master' into alignof
 - More Descriptive Version
 - Merge remote-tracking branch 'upstream/master' into alignof
 - HotSpot Style Guide should permit use of alignof

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

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

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

  Stats: 2756 lines in 88 files changed: 1084 ins; 1534 del; 138 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