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

use default allocator for tbb::concurrent_hash_map #1332

Conversation

kupsch
Copy link
Contributor

@kupsch kupsch commented Dec 9, 2022

Fixes warning produced by gcc 12: a non-default allocator for tbb::concurrent_hash_map causes a new/delete mismatch warning (that appears to be a false positive). Warning produced since tbb headers are not marked as a system headers yet.

In the future the allocator should be changed to use the tbb scalable allocator.

Related to #1331

@kupsch kupsch added ABI-BREAKER This change alters the Dyninst public ABI code cleanup Bring the code up to modern standards or remove deprecated features labels Dec 9, 2022
@kupsch kupsch requested a review from hainest December 9, 2022 22:48
@kupsch kupsch self-assigned this Dec 9, 2022
@jrmadsen
Copy link
Contributor

This would probably be silenced by adding SYSTEM to the target_include_directories for the TBB headers

@kupsch
Copy link
Contributor Author

kupsch commented Dec 12, 2022

Thanks, we already have that in the pipeline and it does silence the warning. We are also removing the default as it did nothing and for a future change to the scalable allocator.

- gcc 12 warns about mismatched new and delete when an allocator is specified
  This is likely a false positive.  Change to use the default, which uses ends
  up using the same std C++ new allocator
@kupsch kupsch force-pushed the kupsch/fix-gcc-12-warnings-tbb-concurrent_hash_map branch from c565849 to 2ed77ff Compare February 27, 2023 08:01
@kupsch kupsch merged commit 2bfa6e8 into dyninst:master Feb 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ABI-BREAKER This change alters the Dyninst public ABI code cleanup Bring the code up to modern standards or remove deprecated features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants