Skip to content

Commit b895311

Browse files
committed
Move non-load-bearing decisions to future work
1 parent eb061c9 commit b895311

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

text/3543-patchable-function-entry.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,3 +263,7 @@ Disadvantages:
263263
[future-possibilities]: #future-possibilities
264264

265265
We could potentially use these for dynamic tracing of rust programs, similar to `#[instrument]` in the `tracing` today, but with more configurable behavior and even lower overhead (since there will be no conditionals to check, just a nop sled to go down).
266+
267+
We could consider adding `#[unpatchable]` as a shorthand for `#[patchable_function_entry(entry_nops = 0, prefix-nops = 0)]`.
268+
269+
We could define the behavior around differing default patchability in the crate graph more narrowly (either require a hard error, or require that the compiler follows the declaring crate's padding spec).

0 commit comments

Comments
 (0)