fix: Address code review comments regarding boost::coroutine2 - #6977
Conversation
Signed-off-by: Pratik Mankawde <3397372+pratikmankawde@users.noreply.github.com>
| boost/*:without_context=False | ||
| # Boost stacktrace fails to build with some sanitizers | ||
| boost/*:without_stacktrace=True | ||
| {% elif "thread" in sanitizers %} |
There was a problem hiding this comment.
TSAN is inactive at the moment, so this is just to keep the profile consistent. This is a dead branch at the moment.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #6977 +/- ##
==========================================
+ Coverage 81.6% 82.6% +1.0%
==========================================
Files 1010 1012 +2
Lines 75992 98196 +22204
Branches 7605 10594 +2989
==========================================
+ Hits 62002 81112 +19110
- Misses 13990 16687 +2697
- Partials 0 397 +397
🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Pull request overview
This PR updates the codebase and build configuration to align with current Boost.Coroutine2 APIs and sanitizer-related Boost.Context build requirements.
Changes:
- Replace deprecated
boost::coroutines2::asymmetric_coroutineusage withboost::coroutines2::coroutineinJobQueue::Coro. - Centralize coroutine stack size into a named constant for clarity and reuse.
- Adjust build/config tooling: remove
BOOST_COROUTINES2_NO_DEPRECATION_WARNING, remove an ASAN-specific ConanfPICoverride, and add Boost.Context ucontext configuration for TSAN in the sanitizer profile.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| include/xrpl/core/Coro.ipp | Switch coroutine parameter type to boost::coroutines2::coroutine<void>::push_type and introduce a named stack-size constant. |
| conanfile.py | Removes ASAN-specific fPIC override (but leaves an inert SANITIZERS env check). |
| conan/profiles/sanitizers | Add TSAN-specific Boost.Context ucontext build flags for correct sanitizer annotations. |
| cmake/XrplInterface.cmake | Removes BOOST_COROUTINES2_NO_DEPRECATION_WARNING compile definition. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
boost::coroutine2
…F#6977) Signed-off-by: Pratik Mankawde <3397372+pratikmankawde@users.noreply.github.com>
…F#6977) Signed-off-by: Pratik Mankawde <3397372+pratikmankawde@users.noreply.github.com>
High Level Overview of Change
Minor cleanup updates to boost::coroutine2 PR.
Context of Change
This PR does some minor cleanups. No logic changes.
#6372
Test Plan
Tested locally.