You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
2.7 KiB

  1. From 71d608fceca7e61c9d124f9ea83f71b06eda3b17 Mon Sep 17 00:00:00 2001
  2. From: arvidn <arvid@libtorrent.org>
  3. Date: Sun, 12 Dec 2021 21:52:15 +0100
  4. Subject: [PATCH] update allocator sizes for boost-1.78
  5. ---
  6. include/libtorrent/aux_/allocating_handler.hpp | 16 ++++++++--------
  7. 1 file changed, 8 insertions(+), 8 deletions(-)
  8. --- a/include/libtorrent/aux_/allocating_handler.hpp
  9. +++ b/include/libtorrent/aux_/allocating_handler.hpp
  10. @@ -77,11 +77,11 @@ namespace libtorrent { namespace aux {
  11. constexpr std::size_t openssl_write_cost = 0;
  12. #endif
  13. - constexpr std::size_t read_handler_max_size = tracking + debug_read_iter + openssl_read_cost + 102 + 8 * sizeof(void*);
  14. - constexpr std::size_t write_handler_max_size = tracking + debug_write_iter + openssl_write_cost + 102 + 8 * sizeof(void*);
  15. - constexpr std::size_t udp_handler_max_size = tracking + debug_tick + 144 + 8 * sizeof(void*);
  16. - constexpr std::size_t utp_handler_max_size = tracking + debug_tick + 168 + 8 * sizeof(void*);
  17. - constexpr std::size_t tick_handler_max_size = tracking + debug_tick + 160;
  18. + constexpr std::size_t read_handler_max_size = tracking + debug_read_iter + openssl_read_cost + 102 + 9 * sizeof(void*);
  19. + constexpr std::size_t write_handler_max_size = tracking + debug_write_iter + openssl_write_cost + 102 + 9 * sizeof(void*);
  20. + constexpr std::size_t udp_handler_max_size = tracking + debug_tick + 144 + 9 * sizeof(void*);
  21. + constexpr std::size_t utp_handler_max_size = tracking + debug_tick + 168 + 9 * sizeof(void*);
  22. + constexpr std::size_t tick_handler_max_size = tracking + debug_tick + 168;
  23. constexpr std::size_t abort_handler_max_size = tracking + debug_tick + 104;
  24. constexpr std::size_t submit_handler_max_size = tracking + debug_tick + 104;
  25. constexpr std::size_t deferred_handler_max_size = tracking + debug_tick + 112;
  26. @@ -124,12 +124,12 @@ namespace libtorrent { namespace aux {
  27. #endif
  28. constexpr std::size_t write_handler_max_size = tracking + debug_write_iter + openssl_write_cost + fuzzer_write_cost + 168;
  29. constexpr std::size_t read_handler_max_size = tracking + debug_read_iter + openssl_read_cost + fuzzer_read_cost + 168;
  30. - constexpr std::size_t udp_handler_max_size = tracking + 160;
  31. - constexpr std::size_t utp_handler_max_size = tracking + 184;
  32. + constexpr std::size_t udp_handler_max_size = tracking + 168;
  33. + constexpr std::size_t utp_handler_max_size = tracking + 192;
  34. constexpr std::size_t abort_handler_max_size = tracking + 72;
  35. constexpr std::size_t submit_handler_max_size = tracking + 72;
  36. constexpr std::size_t deferred_handler_max_size = tracking + 80;
  37. - constexpr std::size_t tick_handler_max_size = tracking + 128;
  38. + constexpr std::size_t tick_handler_max_size = tracking + 136;
  39. #endif
  40. enum HandlerName