mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 22:44:02 +08:00
core(alloc): force initialization of memalign flag
- before main() launch
This commit is contained in:
parent
dd4f591d54
commit
823884b064
@ -112,6 +112,13 @@ bool isAlignedAllocationEnabled()
|
||||
}
|
||||
return useMemalign;
|
||||
}
|
||||
// do not use variable directly, details: https://github.com/opencv/opencv/issues/15691
|
||||
static const bool g_force_initialization_memalign_flag
|
||||
#if defined __GNUC__
|
||||
__attribute__((unused))
|
||||
#endif
|
||||
= isAlignedAllocationEnabled();
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef OPENCV_ALLOC_ENABLE_STATISTICS
|
||||
|
Loading…
Reference in New Issue
Block a user