From a06426a52f16c08c95b1c0270a5fc40721921022 Mon Sep 17 00:00:00 2001 From: Julian Waters Date: Sat, 11 Mar 2023 14:36:56 +0000 Subject: [PATCH] 8274400: HotSpot Style Guide should permit use of alignof Reviewed-by: kbarrett, kvn, dholmes, dcubed --- doc/hotspot-style.html | 11 ++++++++++- doc/hotspot-style.md | 9 ++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/doc/hotspot-style.html b/doc/hotspot-style.html index d1906f49374..ced607d7109 100644 --- a/doc/hotspot-style.html +++ b/doc/hotspot-style.html @@ -598,10 +598,17 @@ conventions might appear jarring and reduce readability.

std::nothrow, and std::nothrow_t.
  • #include <limits> to use std::numeric_limits.
  • -
  • #include <type_traits>.
  • +
  • #include <type_traits> with some restrictions, +listed below.
  • #include <cstddef> to use std::nullptr_t and std::max_align_t.
  • +

    Certain restrictions apply to the declarations provided by +<type_traits>.

    +

    TODO: Rather than directly #including (permitted) Standard Library headers, use a convention of #including wrapper headers (in some location like hotspot/shared/stdcpp). This provides a single place for @@ -1086,6 +1093,8 @@ function name and the parameter list.

    Additional Permitted Features