bytecodealliance / bytecodealliance/wasmtime

Consider a different bit value for `SH_WASMTIME_NOT_EXECUTED`

オープン
#14,101 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement
主要言語
Rust
スター
18.6k
フォーク
1.8k
平均マージ
1日 14時間
マージ済み PR(30日)
135

説明

> Note that this has the same value as `SHF_WRITE`, so this happens to work for `.text` sections, but seems like it was only by chance. I'm not sure which bit would be better though (if we use an OS or PROC bit then probably the reader side would need an additional OS or machine check too).

_Originally posted by @philipc in [#14096](https://github.com/bytecodealliance/wasmtime/pull/14096/changes#r3742372260)_

We probably shouldn't be colliding with bits already allocated to other definitions as that may just cause confusion.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず、Wasmtime のソース内で SH_WASMTIME_NOT_EXECUTED と SHF_WRITE の定義およびリーダー側での処理を特定します。利用可能なビットのうちどれが衝突を回避するか、またリーダーに OS またはマシンのチェックが必要かを判断します。完了条件は、フラグが固有の値を持ち、関連する読み取り/書き込みパスの整合性が保たれていることです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
rust, wasm
領域
compilers
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
静か
明瞭さ
説明が足りない
初心者へのやさしさ
42/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。