/*
- * Copyright 2017 Facebook, Inc.
+ * Copyright 2012-present Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
#include <folly/Conv.h>
#include <folly/Likely.h>
#include <folly/Memory.h>
+#include <folly/lang/Align.h>
#include <folly/memory/Malloc.h>
namespace folly {
typedef boost::intrusive::slist_member_hook<
boost::intrusive::tag<Arena>> BlockLink;
- struct FOLLY_ALIGNED_MAX Block {
+ struct alignas(max_align_v) Block {
BlockLink link;
// Allocate a block with at least size bytes of storage.