Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Unified Diff: include/new

Issue 2574553002: [counting-allocator] macOS buildtools/third_party/libc++/trunk/ changes.
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/memory ('k') | include/set » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/new
diff --git a/include/new b/include/new
index d2b2ae648b48952a23db41cf38ae04261f5eee01..0ec1ff21951f4e24205018367acd194624724fcd 100644
--- a/include/new
+++ b/include/new
@@ -120,6 +120,8 @@ typedef void (*new_handler)();
_LIBCPP_FUNC_VIS new_handler set_new_handler(new_handler) _NOEXCEPT;
_LIBCPP_FUNC_VIS new_handler get_new_handler() _NOEXCEPT;
+struct _LIBCPP_TYPE_VIS new_tag { const char* value; };
+
} // std
#if defined(_WIN32) && !defined(cxx_EXPORTS)
@@ -133,6 +135,11 @@ _LIBCPP_NEW_DELETE_VIS void* operator new(std::size_t __sz)
throw(std::bad_alloc)
#endif
;
+_LIBCPP_NEW_DELETE_VIS void* operator new(std::size_t __sz, std::new_tag __tag)
+#if !__has_feature(cxx_noexcept)
+ throw(std::bad_alloc)
+#endif
+;
_LIBCPP_NEW_DELETE_VIS void* operator new(std::size_t __sz, const std::nothrow_t&) _NOEXCEPT _NOALIAS;
_LIBCPP_NEW_DELETE_VIS void operator delete(void* __p) _NOEXCEPT;
_LIBCPP_NEW_DELETE_VIS void operator delete(void* __p, const std::nothrow_t&) _NOEXCEPT;
« no previous file with comments | « include/memory ('k') | include/set » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698