Skip to content

Conversation

@wenyongh
Copy link
Collaborator

No description provided.

set_error_buf_v(error_buf, error_buf_size,
"failed to compile orc jit function: %s", err_msg);
LLVMDisposeErrorMessage(err_msg);
bh_print_time("Begin to lookup jit functions");
Copy link
Contributor

@lum1n0us lum1n0us Oct 14, 2022

Choose a reason for hiding this comment

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

Since CoD creates stub for every function, Lookup will not involve any heavy jobs like compilation or optimization. It may not need to use multiple background thread to do that.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I did some test, it reduces port of total lookup time, had better add it to startup as quick as we can.

module->func_ptrs[i] = (void *)func_addr;
}

#if WASM_ENABLE_LAZY_JIT == 0
Copy link
Contributor

@lum1n0us lum1n0us Oct 14, 2022

Choose a reason for hiding this comment

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

guess we don't need WASM_ENABLE_LAZY_JIT == 0 and join.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

If it is removed, the WASM_ENABLE_LAZY_JIT isn't used, do we want to disable the eager mode?

@wenyongh wenyongh merged commit bbc798b into bytecodealliance:dev/refactor_llvm_jit Oct 14, 2022
wenyongh added a commit to wenyongh/wasm-micro-runtime that referenced this pull request Oct 14, 2022
Enable backend threads pre-compilation for orcv2 JIT (bytecodealliance#1589)
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.

2 participants