Pulley: Experiment using the `stack_limit` and `handler` options in CLIF

Aperta
#15,449 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
20/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust
Ambito
compilers

Direzione di ricerca

Start from PR #15392 to see how stack_limit and handler were wired into CLIF functions, then locate where the Pulley interpreter currently guards stack decrements itself and where CLIF function prologues are lowered. The experiment is to set both options on all Pulley CLIF functions, remove the interpreter-side stack checks, and run the Pulley test suite plus benchmarks to measure the prologue cost. Done means the Pulley special case is gone and the performance impact is recorded.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

pulley

Pulley has custom management of the stack right now where the interpreter protects against stack overflow on all stack decrements. This was originally done out of necessity but with #15392 it's now possible to instead use stack_limit and handler on all CLIF functions. We should experiment using that for Pulley as it would remove a preexisting "pulley is special" case which would be nice to cut down.

It's expected that this option would decrease the performance of Pulley as the function prologue would take longer to interpret. In the limit we could probably pack all of this into a single opcode, however, to recover some of that performance loss. Nevertheless this seems worthwhile to test out and see how it goes.

Lingua principale
Rust
Stelle
18.9k
Fork
2k
Merge medio
1g 6h
PR unite (30g)
238

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di bytecodealliance/wasmtime

Tutte le issue di bytecodealliance/wasmtime

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.