Integrated: 8274400: HotSpot Style Guide should permit use of alignof

Julian Waters jwaters at openjdk.org
Sat Mar 11 14:40:34 UTC 2023


On Thu, 22 Dec 2022 04:39:47 GMT, Julian Waters <jwaters at openjdk.org> wrote:

> 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.

This pull request has now been integrated.

Changeset: a06426a5
Author:    Julian Waters <jwaters at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/a06426a52f16c08c95b1c0270a5fc40721921022
Stats:     18 lines in 2 files changed: 16 ins; 0 del; 2 mod

8274400: HotSpot Style Guide should permit use of alignof

Reviewed-by: kbarrett, kvn, dholmes, dcubed

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

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


More information about the hotspot-dev mailing list