Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove misuse allocator #362

Merged
merged 3 commits into from
Oct 19, 2024
Merged

Remove misuse allocator #362

merged 3 commits into from
Oct 19, 2024

Conversation

redboltz
Copy link
Owner

No description provided.

When custom allocator is bound, the allocated memory was used for
packets allocation. It violates POSM rule because the memory could exist
after async operation is finished.
This commit removed the misuse.

The bound allocator is simply passed to asio layer (and used in the asio
layer).
@codecov-commenter
Copy link

codecov-commenter commented Oct 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.31%. Comparing base (d96da9c) to head (a15d0bc).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #362      +/-   ##
==========================================
+ Coverage   97.23%   97.31%   +0.08%     
==========================================
  Files         153      153              
  Lines        9469     9461       -8     
==========================================
  Hits         9207     9207              
+ Misses        262      254       -8     
Files with missing lines Coverage Δ
include/async_mqtt/util/detail/stream_impl.hpp 97.22% <ø> (ø)
...nclude/async_mqtt/util/impl/stream_read_packet.hpp 98.52% <100.00%> (-0.03%) ⬇️
include/async_mqtt/util/shared_ptr_array.hpp 100.00% <ø> (ø)

... and 1 file with indirect coverage changes

@redboltz redboltz force-pushed the remove_misuse_allocator branch from 2f9ac16 to a15d0bc Compare October 19, 2024 13:02
@redboltz redboltz merged commit cb9e890 into main Oct 19, 2024
11 checks passed
@redboltz redboltz deleted the remove_misuse_allocator branch October 19, 2024 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants