Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

Fix JIT Machine Code Size Estimation #110

Merged
merged 2 commits into from
Nov 9, 2020

Conversation

Lichtso
Copy link

@Lichtso Lichtso commented Nov 6, 2020

Measured the following sizes of generated machine code for various expensive operations:

  • Address translation: 104 bytes
  • Instruction profiling and limiting: 20 bytes
  • Syscall: 238 bytes
  • BPF-to-BPF static call: 98 bytes
  • BPF-to-BPF dynamic call: 185 bytes
  • Exit / return: 68 bytes

Based on that we can set an upper size limit by estimating a maximal length of 256 bytes per instruction.

@Lichtso Lichtso added the bug Something isn't working label Nov 6, 2020
@Lichtso Lichtso merged commit 3d41430 into solana-master Nov 9, 2020
@Lichtso Lichtso deleted the fix/jit_machine_code_size_estimation branch November 9, 2020 15:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant