Should thread creation be fallible?

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

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

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

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
wasm
Lĩnh vực
distributed-systems

Hướng nghiên cứu

Read the issue’s proposal about thread.new-indirect and its comparison with pthread_create; the payload does not name a specification file, test, or implementation entry point. Decide whether thread creation failure should be reported to the guest, and define the failure result and its behavior before this can be considered done.

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

Mô tả

Right now thread.new-indirect unconditionally returns a new thread, meaning that if a host doesn't actually have the resources to allocate a thread then the only thing it can do is trap. APIs like pthread_create can communicate thread creation failure, however, and in theory a -1 sentinel or similar here should be possible, so I wanted to ask the question -- should thread.new-indirect grow the ability to inform the guest in a non-fatal way that thread creation failed? Perhaps by returning -1?

Ngôn ngữ chính
WebAssembly
Star
1.4k
Fork
132
Merge trung bình
5 ngày 10 giờ
Pull request đã merge (30 ngày)
10

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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 WebAssembly/component-model

Tất cả issue của WebAssembly/component-model

Issue tương tự

Thêm issue về Distributed Systems

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.