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

Đang mở
#15,449 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
20/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
rust
Lĩnh vực
compilers

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Rust
Star
18.9k
Fork
2k
Merge trung bình
1 ngày 6 giờ
Pull request đã merge (30 ngày)
238

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của bytecodealliance/wasmtime

Tất cả issue của bytecodealliance/wasmtime

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.