-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
liballoc_jemalloc nallocx should be ReadOnly #46046
Comments
That's because
The C code already makes that assumption, and is compiled with it, so if it turns out that |
Oh, I misunderstood what nallocx does, disregard me. |
The quick and dirty way would be to add two attributes, A more useful thing to do would be to add some |
liballoc_jemalloc is no longer a core component of the Rust runtime, instead being used as a library by the Rust compiler. |
nallocx
is a[[pure]]
function in the GCC sense, and should have the LLVM ReadOnly attribute. I've been looking for a way to apply LLVM attributes to functions in Rust without much luck (another interesting one isReadNone
, GCC'sconst
attribute).Is there a way to do this?
The text was updated successfully, but these errors were encountered: