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

Add --enable-gc option to WAMRC #2190

Merged
merged 1 commit into from May 15, 2023

Conversation

no1wudi
Copy link
Collaborator

@no1wudi no1wudi commented May 9, 2023

The runtime instance memory layout changed with GC enabled. With this patch GC enabled for WAMRC, but keep compatible for iwasm wether it enabled GC or not for non-GC wasm module.

It may waste some memory for iwasm without GC support since the GC relative fileds are always here, let's do optimization until
AOT fully support GC.

@no1wudi no1wudi force-pushed the dev/gc_refactor branch 6 times, most recently from e6c261d to 75751a0 Compare May 9, 2023 08:57
@no1wudi no1wudi changed the title Enable GC option for WAMRC Add --enable-gc option to WAMRC May 9, 2023
@no1wudi no1wudi force-pushed the dev/gc_refactor branch 4 times, most recently from 32d433d to e59faf7 Compare May 10, 2023 03:08
core/iwasm/interpreter/wasm_runtime.h Show resolved Hide resolved
core/iwasm/interpreter/wasm_runtime.h Outdated Show resolved Hide resolved
core/shared/mem-alloc/ems/ems_gc.c Outdated Show resolved Hide resolved
core/shared/mem-alloc/ems/ems_kfc.c Outdated Show resolved Hide resolved
wamr-compiler/CMakeLists.txt Outdated Show resolved Hide resolved
wamr-compiler/main.c Show resolved Hide resolved
wamr-compiler/main.c Show resolved Hide resolved
@no1wudi no1wudi force-pushed the dev/gc_refactor branch 2 times, most recently from e3ca208 to 614a4e9 Compare May 15, 2023 02:10
@@ -57,12 +57,13 @@ print_help()
printf(" --disable-simd Disable the post-MVP 128-bit SIMD feature:\n");
printf(" currently 128-bit SIMD is supported for x86-64 and aarch64 targets,\n");
printf(" and by default it is enabled in them and disabled in other targets\n");
printf(" --disable-ref-types Disable the MVP reference types feature\n");
printf(" --disable-ref-types Disable the MVP reference types feature, it will be force disabled if GC enabled\n");
Copy link
Contributor

Choose a reason for hiding this comment

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

How about it will be disabled forcibly?

Copy link
Contributor

Choose a reason for hiding this comment

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

be force disabled should be a grammar mistake

wamr-compiler/main.c Outdated Show resolved Hide resolved
The runtime instance memory layout changed with GC enabled.
With this patch GC enabled for WAMRC, but keep compatible for iwasm wether it enabled GC or not for non-GC wasm module.
Copy link
Contributor

@wenyongh wenyongh left a comment

Choose a reason for hiding this comment

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

LGTM

@wenyongh wenyongh merged commit 035cca0 into bytecodealliance:dev/gc_refactor May 15, 2023
515 checks 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.

None yet

2 participants