Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support new spawn with native simulator #114

Merged
merged 8 commits into from
Oct 29, 2024

Conversation

joii2020
Copy link
Contributor

@joii2020 joii2020 commented Sep 26, 2024

No description provided.

@joii2020 joii2020 changed the title [WIP] Support new spawn with native simulator Support new spawn with native simulator Oct 28, 2024
src/debug.rs Outdated
@@ -47,9 +47,11 @@ macro_rules! debug {
macro_rules! debug {

($fmt:literal) => {
println!("{}", format!($fmt));
#[cfg(debug_assertions)]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They are same with non-simulator configuration. The macro with "#[cfg(feature = "native-simulator")]" can be removed.

@XuJiandong XuJiandong requested a review from mohanson October 29, 2024 03:05
@@ -277,42 +300,95 @@ pub fn spawn(
_bounds: usize,
_spgs: &mut SpawnArgs,
) -> Result<u64, SysError> {
panic!("This is not supported in the native-simulator!");
panic!("please use exec_cell instead");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe "please use spawn_cell instread" ?

@mohanson mohanson merged commit ef251e2 into nervosnetwork:master Oct 29, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants