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

Unified Diff: src/new.cpp

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 | « src/memory.cpp ('k') | src/string.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/new.cpp
diff --git a/src/new.cpp b/src/new.cpp
index f4f73d86803d38827ddb8ba97af6f3354a314fd5..88d7bbfb9d546c6c83ee7335c4da35048ef797e8 100644
--- a/src/new.cpp
+++ b/src/new.cpp
@@ -31,6 +31,16 @@
#endif // _LIBCPPABI_VERSION
#endif
+_LIBCPP_WEAK _LIBCPP_NEW_DELETE_VIS
+void *
+operator new(std::size_t size, std::new_tag)
+#if !__has_feature(cxx_noexcept)
+ throw(std::bad_alloc)
+#endif
+{
+ return ::operator new(size);
+}
+
#ifndef __GLIBCXX__
// Implement all new and delete operators as weak definitions
« no previous file with comments | « src/memory.cpp ('k') | src/string.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698