【发布时间】:2021-05-05 19:46:38
【问题描述】:
来自 Scudo 页面:
Some parameters of the allocator can be defined on a per-process basis through several ways:
Statically: Define a __scudo_default_options function in the program that returns the options string to be parsed. This function must have the following prototype: extern "C" const char *__scudo_default_options().
Dynamically: Use the environment variable SCUDO_OPTIONS containing the options string to be parsed. Options defined this way override any definition made through __scudo_default_options.
我对 Android 还很陌生,有人可以帮我了解在 cpp 代码中将 __scudo_default_options 之类的函数放在哪里,我有 MainActivity.cpp 和 MidiManager.cpp
【问题讨论】:
标签: android c++ java-native-interface dynamic-memory-allocation