We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
fn oom
1 parent 7c2c444 commit 117e5fcCopy full SHA for 117e5fc
text/0000-kinds-of-allocators.md
@@ -1162,6 +1162,12 @@ few motivating examples that *are* clearly feasible and useful.
1162
over the underlying system allocator, while the convenience methods would truly
1163
be convenient.)
1164
1165
+ * Should `oom` be a free-function rather than a method on `Allocator`?
1166
+ (The reason I want it on `Allocator` is so that it can provide feedback
1167
+ about the allocator's state at the time of the OOM. Zoxc has argued
1168
+ on the RFC thread that some forms of static analysis, to prove `oom` is
1169
+ never invoked, would prefer it to be a free function.)
1170
+
1171
# Unresolved questions
1172
[unresolved]: #unresolved-questions
1173
0 commit comments