inline Context::Context(Wasm* wasm, absl::string_view root_id, PluginSharedPtr plugin)
    : wasm_(wasm), id_(wasm->allocContextId()), root_context_(this), plugin_(plugin) {
  RELEASE_ASSERT(root_id == plugin->root_id_, "");
  wasm_->contexts_[id_] = this;
}
inline Context::Context(Wasm* wasm, absl::string_view root_id, PluginSharedPtr plugin)
    : wasm_(wasm), id_(wasm->allocContextId()), root_context_(this), plugin_(plugin) {
  RELEASE_ASSERT(root_id == plugin->root_id_, "");
  wasm_->contexts_[id_] = this;
}