-
Notifications
You must be signed in to change notification settings - Fork 18
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
DISPATCH-2039 Add option -DQD_DISABLE_MEMORY_POOL for CMake build #110
DISPATCH-2039 Add option -DQD_DISABLE_MEMORY_POOL for CMake build #110
Conversation
e27d7da
to
89f8d9f
Compare
6fa2d95
to
ec3fdf8
Compare
# Safe pointers require memory pool to work (memory may never be relinquished to the OS, otherwise safe pointers may | ||
# break). Therefore, only disable memory pool for special debugging purposes. Sanitizers minimize memory reuse and | ||
# make it significantly less likely that a safe pointer breaks. | ||
set(QD_DISABLE_MEMORY_POOL OFF CACHE STRING "Disables memory pool. Should be only used with asan or msan RUNTIME_CHECK") |
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.
@jiridanek any chance this patch can for the 'cmake' command to fail if QD_DISABLE_MEMORY_POOL is set but RUNTIME_CHECK is not asan/msan?
Issue a message(FATAL_ERROR... like done elsewhere in this file.
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.
I guess so, this should thwart the unwarry who might want to compile production build with the option, and put them back on the right path. Not that they would not be taught differently soon enough, the safe pointers break a lot, without sanitizers. (increasing the quarantine_size_mb
sanitizer option helps make the router more stable).
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.
added in a fixup
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.
See comment (optional suggestion), otherwise LGTM
ec3fdf8
to
740b49d
Compare
740b49d
to
c1fb45f
Compare
No description provided.