-
Notifications
You must be signed in to change notification settings - Fork 724
Fix memory grow on SGX platform #4651
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
base: main
Are you sure you want to change the base?
Conversation
} | ||
|
||
void * | ||
os_mremap(void *old_addr, size_t old_size, size_t new_size) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't you want to drop core/shared/platform/common/memory from core/shared/platform/linux-sgx/shared_platform.cmake ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I dropped it from shared_platform.cmake.
…clude platform_api_memory.cmake
endif() | ||
|
||
include (${CMAKE_CURRENT_LIST_DIR}/../common/memory/platform_api_memory.cmake) | ||
set (source_all ${source_all} ${PLATFORM_COMMON_MEMORY_SOURCE}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this line as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for pointing that out. I overlooked it.
… unnecessary PLATFORM_COMMON_MEMORY_SOURCE
This PR fixes #4648.