Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upliballoc_jemalloc nallocx should be ReadOnly #46046
Comments
This comment has been minimized.
This comment has been minimized.
That's because
The C code already makes that assumption, and is compiled with it, so if it turns out that |
This comment has been minimized.
This comment has been minimized.
|
Oh, I misunderstood what nallocx does, disregard me. |
kennytm
added
A-codegen
C-feature-request
labels
Nov 16, 2017
This comment has been minimized.
This comment has been minimized.
|
The quick and dirty way would be to add two attributes, A more useful thing to do would be to add some |
gnzlbg commentedNov 16, 2017
nallocxis 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'sconstattribute).Is there a way to do this?