Skip to content

[BugFix] Check the return value of posix_memalign before use the aligned buffer.#25

Open
GavinMar wants to merge 2 commits into
StarRocks:mainfrom
GavinMar:dev
Open

[BugFix] Check the return value of posix_memalign before use the aligned buffer.#25
GavinMar wants to merge 2 commits into
StarRocks:mainfrom
GavinMar:dev

Conversation

@GavinMar
Copy link
Copy Markdown
Collaborator

@GavinMar GavinMar commented Apr 13, 2023

In this PR, we check the return value of posix_memalign before use the aligned buffer. On the one hand, it can avoid the -Wunused-result warning in some compiles, on the other hand, it helps avoid some unexpected error caused by posix memory operarions.

Also, we add the mutex header files to some source files in case of the undefined unique_lock for some special build environment.

…ependent libraries

from system default path first.
Setting it to `OFF` can ensure find the dependent libraries from the given thirdparty path.

Signed-off-by: GavinMar <yangguansuo@starrocks.com>
…igned buffer.

Signed-off-by: GavinMar <yangguansuo@starrocks.com>
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.

1 participant