Skip to content

Commit a2d8f3a

Browse files
TCMalloc Teamcopybara-github
authored andcommitted
Adds #define TCMALLOC_HAS_ALIGNED_SIZE_RETURNING_NEW if tcmalloc_size_returning_operator_new_aligned and tcmalloc_size_returning_operator_new_aligned_nothrow are available.
PiperOrigin-RevId: 392458415 Change-Id: I4002fb1dd2f95035ce9c96f3d054eb11b2ec43cd
1 parent 2ce18e6 commit a2d8f3a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tcmalloc/malloc_extension.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -526,6 +526,7 @@ tcmalloc::sized_ptr_t tcmalloc_size_returning_operator_new_nothrow(
526526
// Aligned size returning new is only supported for libc++ because of issues
527527
// with libstdcxx.so linkage. See http://b/110969867 for background.
528528
#if defined(_LIBCPP_VERSION) && defined(__cpp_aligned_new)
529+
#define TCMALLOC_HAS_ALIGNED_SIZE_RETURNING_NEW
529530

530531
// Identical to `tcmalloc_size_returning_operator_new` except that the returned
531532
// memory is aligned according to the `alignment` argument.

0 commit comments

Comments
 (0)