Skip to content

Comments

Fix the Broken malloc_n Behavior#53

Merged
jzmaddock merged 7 commits intoboostorg:developfrom
leimao:fix_malloc_n
Jan 15, 2023
Merged

Fix the Broken malloc_n Behavior#53
jzmaddock merged 7 commits intoboostorg:developfrom
leimao:fix_malloc_n

Conversation

@leimao
Copy link
Contributor

@leimao leimao commented Dec 14, 2022

Fix #52 and added unit tests.

@leimao
Copy link
Contributor Author

leimao commented Dec 14, 2022

@mclow Could you please approve me running the test workflow to see if it will pass the existing unit tests?

@leimao
Copy link
Contributor Author

leimao commented Dec 14, 2022

Also tagging @jzmaddock for enabling first-time user workflow.

@leimao
Copy link
Contributor Author

leimao commented Dec 14, 2022

The patch works. Can someone please review and approve? Thank you.

@jzmaddock
Copy link
Contributor

I've approved the run, but I'm not sure how up to date the CI scripts are. We've also often talked about marking this library deprecated, but that appears not to have happened yet :(

@codecov
Copy link

codecov bot commented Dec 14, 2022

Codecov Report

Merging #53 (6ec9801) into develop (600bcb0) will increase coverage by 0.23%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop      #53      +/-   ##
===========================================
+ Coverage    93.48%   93.71%   +0.23%     
===========================================
  Files            9        9              
  Lines          583      589       +6     
===========================================
+ Hits           545      552       +7     
+ Misses          38       37       -1     
Impacted Files Coverage Δ
include/boost/pool/simple_segregated_storage.hpp 95.74% <100.00%> (+0.29%) ⬆️
include/boost/pool/pool.hpp 96.61% <0.00%> (+0.33%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 600bcb0...6ec9801. Read the comment docs.

@leimao
Copy link
Contributor Author

leimao commented Dec 14, 2022

I've approved the run, but I'm not sure how up to date the CI scripts are. We've also often talked about marking this library deprecated, but that appears not to have happened yet :(

@jzmaddock Do you still suggest merging this patch? There is a small coverage check failing which I shall further investigate.

@jzmaddock
Copy link
Contributor

Do you still suggest merging this patch? There is a small coverage check failing which I shall further investigate.

I know it's a relatively trivial patch, but I still need to find the time to do a proper eyeball-checkover before merging. Please nag me if I don't get to it soon-ish.

@leimao
Copy link
Contributor Author

leimao commented Dec 14, 2022

Thanks @jzmaddock. Take your time. Some of the new unit tests I added this morning trying to remedy the unit test coverage issues yesterday seems having some problems. I will check and try fixing them later today or tomorrow.

@leimao
Copy link
Contributor Author

leimao commented Dec 15, 2022

@jzmaddock I tested the new patch I just uploaded locally and it worked. Hope this time the test coverage issue can be fixed. Is there anyway that I can measure the test coverage locally BTW?

@leimao
Copy link
Contributor Author

leimao commented Dec 16, 2022

@jzmaddock Request running more test workflows.

@leimao
Copy link
Contributor Author

leimao commented Dec 19, 2022

@jzmaddock With the new unit test, it added one additional coverage comparing to the previous commit cf9b5c4. But it's still missing one coverage comparing to the develop branch. Is it something that has to be fixed in order to get the pull request merged? Thanks.

@leimao
Copy link
Contributor Author

leimao commented Dec 19, 2022

@jzmaddock Added one more unit test. I ran some local unit test to see if the logic will flow to the positions where the coverage test failed. It seems that it will help. Please run the test workflow again. Thanks.

@leimao
Copy link
Contributor Author

leimao commented Dec 24, 2022

@jzmaddock

@leimao
Copy link
Contributor Author

leimao commented Dec 27, 2022

@jzmaddock It seems that it has passed all the checks. Could you please review and merge if possible?

@leimao
Copy link
Contributor Author

leimao commented Dec 30, 2022

@jzmaddock Bothering you again :)

@leimao
Copy link
Contributor Author

leimao commented Jan 2, 2023

@jzmaddock @pabristow Can some of you please review?

@leimao
Copy link
Contributor Author

leimao commented Jan 9, 2023

@jzmaddock

@leimao
Copy link
Contributor Author

leimao commented Jan 14, 2023

@jzmaddock @mclow

@jzmaddock
Copy link
Contributor

This all checks out, thanks for persevering!

@jzmaddock jzmaddock merged commit 8ec1be1 into boostorg:develop Jan 15, 2023
@leimao
Copy link
Contributor Author

leimao commented Jan 15, 2023

This all checks out, thanks for persevering!

Thank you very much!

ni-vzavalishin added a commit to fdetro/boost-pool that referenced this pull request Jan 15, 2025
ni-vzavalishin added a commit to fdetro/boost-pool that referenced this pull request Jan 15, 2025
ni-vzavalishin added a commit to fdetro/boost-pool that referenced this pull request Jan 15, 2025
jzmaddock pushed a commit that referenced this pull request Feb 25, 2025
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.

malloc_n method inconsistency from boost::simple_segregated_storage?

2 participants