Skip to content

Conversation

@WenLY1
Copy link
Contributor

@WenLY1 WenLY1 commented Sep 19, 2024

No description provided.

if (!(heap = runtime_malloc(heap_struct_size, error_buf, error_buf_size))) {
goto fail1;
}
heap->size = size;
Copy link
Contributor

Choose a reason for hiding this comment

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

The size is changed later with size = align_uint(size, os_getpagesize()), had better set heap->size after that, e.g. after L202

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, done

WASM_LOG_LEVEL_VERBOSE = 4
} log_level_t;

#if WASM_ENABLE_SHARED_HEAP != 0
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you remove this macro control in this file? Including L2122. No need to add macro here, since developer may just use this header file and the compiled wamr runtime lib (libvmlib.a or libiwasm.so), adding the control may lead to compilation error in his project.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@WenLY1 WenLY1 force-pushed the shared_heap_dev branch 4 times, most recently from f8d1af9 to f231061 Compare September 20, 2024 02:50
@WenLY1 WenLY1 changed the title fix some bugs of shared heap shared heap: fix some issues and add basic testcase Sep 20, 2024
@wenyongh wenyongh merged commit 4dacef2 into bytecodealliance:dev/shared_heap Sep 20, 2024
@WenLY1 WenLY1 deleted the shared_heap_dev branch September 27, 2024 08:59
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