Searched refs:new_handler (Results 1 - 23 of 23) sorted by relevance

/external/libcxx/test/language.support/support.dynamic/alloc.errors/new.handler/
H A Dnew_handler.pass.cpp10 // test new_handler
18 std::new_handler p = f;
H A DAndroid.mk19 test_name := language.support/support.dynamic/alloc.errors/new.handler/new_handler
20 test_src := new_handler.pass.cpp
/external/libcxx/test/language.support/support.dynamic/new.delete/new.delete.array/
H A Dnew_array.pass.cpp19 void new_handler() function
35 std::set_new_handler(new_handler);
H A Dnew_array_nothrow.pass.cpp19 void new_handler() function
35 std::set_new_handler(new_handler);
/external/libcxx/test/language.support/support.dynamic/new.delete/new.delete.single/
H A Dnew.pass.cpp19 void new_handler() function
35 std::set_new_handler(new_handler);
H A Dnew_nothrow.pass.cpp19 void new_handler() function
35 std::set_new_handler(new_handler);
/external/libcxxabi/src/
H A Dcxa_handlers.cpp10 // unexpected_handler, and new_handler.
105 extern "C" new_handler __cxa_new_handler = 0;
107 // std::atomic<std::new_handler> __cxa_new_handler(0);
109 new_handler
110 set_new_handler(new_handler handler) _NOEXCEPT
117 new_handler
120 return __sync_fetch_and_add(&__cxa_new_handler, (new_handler)0);
H A Dcxa_new_delete.cpp25 Otherwise, if the current new_handler (18.6.2.5) is a null pointer value,
28 * Otherwise, the function calls the current new_handler function (18.6.2.3).
32 successful or when a called new_handler function does not return.
46 std::new_handler nh = std::get_new_handler();
/external/libcxx/src/
H A Dnew.cpp34 static std::new_handler __new_handler;
56 // If malloc fails and there is a new_handler,
58 std::new_handler nh = std::get_new_handler();
161 new_handler
162 set_new_handler(new_handler handler) _NOEXCEPT
167 new_handler
/external/chromium_org/skia/ext/
H A DSkMemory_new_handler.cpp15 // SkMemory_malloc.cpp, except that it disables the CRT's new_handler during
17 // new_handler itself will crash on failure when using tcmalloc).
66 std::new_handler old_handler = std::set_new_handler(NULL);
95 std::new_handler old_handler = std::set_new_handler(NULL);
/external/stlport/stlport/stl/
H A D_new.h100 using ::new_handler;
103 using _STLP_VENDOR_EXCEPT_STD::new_handler;
/external/lldb/test/unittest2/test/
H A Dtest_break.py101 new_handler = signal.getsignal(signal.SIGINT)
105 self.assertEqual(signal.getsignal(signal.SIGINT), new_handler)
130 def new_handler(frame, signum): function in function:TestBreak.testHandlerReplacedButCalled
132 signal.signal(signal.SIGINT, new_handler)
/external/chromium_org/native_client_sdk/src/tests/nacl_io_test/
H A Dtty_test.cc271 sighandler_t new_handler = sighandler; local
272 sighandler_t old_handler = ki_signal(SIGWINCH, new_handler);
285 EXPECT_EQ(new_handler, ki_signal(SIGWINCH, old_handler));
H A Dkernel_wrap_test.cc539 static void new_handler(int) {} function
552 EXPECT_EQ(NULL, sigset(kDummyInt, new_handler));
559 EXPECT_EQ(NULL, signal(kDummyInt, new_handler));
/external/chromium_org/base/allocator/
H A Dallocator_shim.cc62 std::new_handler nh;
72 // Since exceptions are disabled, we don't really know if new_handler
77 // If no new_handler is established, the allocation failed.
83 // Otherwise, try the new_handler. If it returns, retry the
H A Dallocator_unittest.cc330 // test without new_handler:
331 std::new_handler saved_handler = std::set_new_handler(0);
334 // test with new_handler:
337 EXPECT_EQ(news_handled, 1) << "nothrow new_handler was not called.";
/external/chromium_org/content/browser/loader/
H A Dbuffered_resource_handler.cc361 scoped_ptr<ResourceHandler> new_handler,
409 next_handler_ = new_handler.Pass();
360 UseAlternateNextHandler( scoped_ptr<ResourceHandler> new_handler, const std::string& payload_for_old_handler) argument
/external/chromium_org/third_party/tcmalloc/chromium/src/tests/
H A Dtcmalloc_unittest.cc662 // test without new_handler:
663 std::new_handler saved_handler = std::set_new_handler(0);
666 // test with new_handler:
670 fprintf(LOGSTREAM, "new_handler was not called.\n");
705 // test without new_handler:
706 std::new_handler saved_handler = std::set_new_handler(0);
709 // test with new_handler:
713 fprintf(LOGSTREAM, "nothrow new_handler was not called.\n");
925 std::new_handler g_old_handler = NULL;
/external/chromium_org/third_party/tcmalloc/vendor/src/tests/
H A Dtcmalloc_unittest.cc662 // test without new_handler:
663 std::new_handler saved_handler = std::set_new_handler(0);
666 // test with new_handler:
670 fprintf(LOGSTREAM, "new_handler was not called.\n");
705 // test without new_handler:
706 std::new_handler saved_handler = std::set_new_handler(0);
709 // test with new_handler:
713 fprintf(LOGSTREAM, "nothrow new_handler was not called.\n");
925 std::new_handler g_old_handler = NULL;
/external/chromium_org/third_party/tcmalloc/chromium/src/
H A Ddebugallocation.cc1122 std::new_handler nh;
1130 // Since exceptions are disabled, we don't really know if new_handler
1137 // If no new_handler is established, the allocation failed.
1142 // Otherwise, try the new_handler. If it returns, retry the
1329 std::new_handler nh;
1337 // Since exceptions are disabled, we don't really know if new_handler
1344 // If no new_handler is established, the allocation failed.
1348 // Otherwise, try the new_handler. If it returns, retry the
H A Dtcmalloc.cc1035 // Otherwise, it will run the std::new_handler if set.
1429 std::new_handler nh;
1437 // Since exceptions are disabled, we don't really know if new_handler
1444 // If no new_handler is established, the allocation failed.
1449 // Otherwise, try the new_handler. If it returns, retry the
1477 std::new_handler nh;
1485 // Since exceptions are disabled, we don't really know if new_handler
1492 // If no new_handler is established, the allocation failed.
1496 // Otherwise, try the new_handler. If it returns, retry the
/external/chromium_org/third_party/tcmalloc/vendor/src/
H A Ddebugallocation.cc1115 std::new_handler nh;
1123 // Since exceptions are disabled, we don't really know if new_handler
1130 // If no new_handler is established, the allocation failed.
1135 // Otherwise, try the new_handler. If it returns, retry the
1317 std::new_handler nh;
1325 // Since exceptions are disabled, we don't really know if new_handler
1332 // If no new_handler is established, the allocation failed.
1336 // Otherwise, try the new_handler. If it returns, retry the
H A Dtcmalloc.cc1024 // Otherwise, it will run the std::new_handler if set.
1384 std::new_handler nh;
1392 // Since exceptions are disabled, we don't really know if new_handler
1399 // If no new_handler is established, the allocation failed.
1404 // Otherwise, try the new_handler. If it returns, retry the
1432 std::new_handler nh;
1440 // Since exceptions are disabled, we don't really know if new_handler
1447 // If no new_handler is established, the allocation failed.
1451 // Otherwise, try the new_handler. If it returns, retry the

Completed in 435 milliseconds