aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrobot-contrib <robot-contrib@yandex-team.com>2024-12-19 19:42:49 +0300
committerrobot-contrib <robot-contrib@yandex-team.com>2024-12-19 19:59:40 +0300
commitbd1567a793dad5041020f40fa0e3d9cb13377dad (patch)
treead1aeb742d900600a4b65310a894b053e7e58921
parent97817d136688d09f2b05a47138a83c065739432d (diff)
downloadydb-bd1567a793dad5041020f40fa0e3d9cb13377dad.tar.gz
Update contrib/restricted/boost/coroutine to 1.87.0
commit_hash:c9b94a23d7ecbd408d07b4247f645b5f02b3ca4e
-rw-r--r--contrib/restricted/boost/coroutine/include/boost/coroutine/posix/protected_stack_allocator.hpp8
-rw-r--r--contrib/restricted/boost/coroutine/include/boost/coroutine/windows/protected_stack_allocator.hpp10
-rw-r--r--contrib/restricted/boost/coroutine/src/posix/stack_traits.cpp4
-rw-r--r--contrib/restricted/boost/coroutine/ya.make4
4 files changed, 7 insertions, 19 deletions
diff --git a/contrib/restricted/boost/coroutine/include/boost/coroutine/posix/protected_stack_allocator.hpp b/contrib/restricted/boost/coroutine/include/boost/coroutine/posix/protected_stack_allocator.hpp
index 164bb56cd8..5c50e81d29 100644
--- a/contrib/restricted/boost/coroutine/include/boost/coroutine/posix/protected_stack_allocator.hpp
+++ b/contrib/restricted/boost/coroutine/include/boost/coroutine/posix/protected_stack_allocator.hpp
@@ -65,13 +65,7 @@ struct basic_protected_stack_allocator
if ( MAP_FAILED == limit) throw std::bad_alloc();
// conforming to POSIX.1-2001
-#if defined(BOOST_DISABLE_ASSERTS)
- ::mprotect( limit, traits_type::page_size(), PROT_NONE);
-#else
- const int result( ::mprotect( limit, traits_type::page_size(), PROT_NONE) );
- (void)result;
- BOOST_ASSERT( 0 == result);
-#endif
+ BOOST_VERIFY( 0 == ::mprotect( limit, traits_type::page_size(), PROT_NONE));
ctx.size = size_;
ctx.sp = static_cast< char * >( limit) + ctx.size;
diff --git a/contrib/restricted/boost/coroutine/include/boost/coroutine/windows/protected_stack_allocator.hpp b/contrib/restricted/boost/coroutine/include/boost/coroutine/windows/protected_stack_allocator.hpp
index 29e19babb7..4eda8fd3f9 100644
--- a/contrib/restricted/boost/coroutine/include/boost/coroutine/windows/protected_stack_allocator.hpp
+++ b/contrib/restricted/boost/coroutine/include/boost/coroutine/windows/protected_stack_allocator.hpp
@@ -52,14 +52,8 @@ struct basic_protected_stack_allocator
if ( ! limit) throw std::bad_alloc();
DWORD old_options;
-#if defined(BOOST_DISABLE_ASSERTS)
- ::VirtualProtect(
- limit, traits_type::page_size(), PAGE_READWRITE | PAGE_GUARD /*PAGE_NOACCESS*/, & old_options);
-#else
- const BOOL result = ::VirtualProtect(
- limit, traits_type::page_size(), PAGE_READWRITE | PAGE_GUARD /*PAGE_NOACCESS*/, & old_options);
- BOOST_ASSERT( FALSE != result);
-#endif
+ BOOST_VERIFY( FALSE != ::VirtualProtect(
+ limit, traits_type::page_size(), PAGE_READWRITE | PAGE_GUARD /*PAGE_NOACCESS*/, & old_options));
ctx.size = size_;
ctx.sp = static_cast< char * >( limit) + ctx.size;
diff --git a/contrib/restricted/boost/coroutine/src/posix/stack_traits.cpp b/contrib/restricted/boost/coroutine/src/posix/stack_traits.cpp
index 7a467b7493..20b3ab79b1 100644
--- a/contrib/restricted/boost/coroutine/src/posix/stack_traits.cpp
+++ b/contrib/restricted/boost/coroutine/src/posix/stack_traits.cpp
@@ -35,7 +35,7 @@ namespace {
std::size_t pagesize()
{
// conform to POSIX.1-2001
- return ::sysconf( _SC_PAGESIZE);
+ return static_cast<std::size_t>( ::sysconf( _SC_PAGESIZE) );
}
rlim_t stacksize_limit_()
@@ -86,7 +86,7 @@ stack_traits::default_size() BOOST_NOEXCEPT
std::size_t
stack_traits::minimum_size() BOOST_NOEXCEPT
-{ return SIGSTKSZ; }
+{ return static_cast<std::size_t>( SIGSTKSZ ); }
std::size_t
stack_traits::maximum_size() BOOST_NOEXCEPT
diff --git a/contrib/restricted/boost/coroutine/ya.make b/contrib/restricted/boost/coroutine/ya.make
index cb5d0b6e21..ffe47ab248 100644
--- a/contrib/restricted/boost/coroutine/ya.make
+++ b/contrib/restricted/boost/coroutine/ya.make
@@ -6,9 +6,9 @@ LICENSE(BSL-1.0)
LICENSE_TEXTS(.yandex_meta/licenses.list.txt)
-VERSION(1.86.0)
+VERSION(1.87.0)
-ORIGINAL_SOURCE(https://github.com/boostorg/coroutine/archive/boost-1.86.0.tar.gz)
+ORIGINAL_SOURCE(https://github.com/boostorg/coroutine/archive/boost-1.87.0.tar.gz)
PEERDIR(
contrib/restricted/boost/assert