Skip to content

Add NetBSD/Solaris allocation functions.#2533

Merged
jbj merged 1 commit intogithub:masterfrom
m00nbsd:master
Dec 16, 2019
Merged

Add NetBSD/Solaris allocation functions.#2533
jbj merged 1 commit intogithub:masterfrom
m00nbsd:master

Conversation

@m00nbsd
Copy link

@m00nbsd m00nbsd commented Dec 16, 2019

  • kmem_{z}alloc is used by Solaris and NetBSD
  • pool_{cache_}get is used by NetBSD

@m00nbsd m00nbsd requested a review from a team as a code owner December 16, 2019 08:33
@ghost
Copy link

ghost commented Dec 16, 2019

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@jbj jbj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution. I have one comment.

Comment on lines +15 to +18
name = "kmem_alloc" or
name = "kmem_zalloc" or
name = "pool_get" or
name = "pool_cache_get"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These names belong in the section below, under hasGlobalName. The section here, under hasGlobalOrStdName, is for function names that may exist both at the top level (like malloc from stdlib.h) and under std (like std::malloc from cstdlib).

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright, that should be better now

@jbj
Copy link
Contributor

jbj commented Dec 16, 2019

We can ignore the failing "Pull Request Labeler" check. I'll trigger the other checks after the initial PR feedback has been addressed.

@geoffw0, do you have anything to add?

@jbj jbj added the C++ label Dec 16, 2019
 * kmem_{z}alloc is used by Solaris and NetBSD
 * pool_{cache_}get is used by NetBSD
@geoffw0
Copy link
Contributor

geoffw0 commented Dec 16, 2019

LGTM. I think this will conflict with #2463, which I will fix after this is merged - but I'd appreciate a merge of 2463 before any further changes to Alloc.qll.

@jbj jbj merged commit 8b1892d into github:master Dec 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants