| 9 | |
| 10 | void registerFunctions(); |
| 11 | void registerFunctions() |
| 12 | { |
| 13 | /// Registration runs once and allocates while building static function metadata (for example |
| 14 | /// HMAC enumerates the OpenSSL digests through a C callback). It must not be subject to the |
| 15 | /// memory tracker's limit or fault injection, so block tracking for its duration. |
| 16 | MemoryTrackerBlockerInThread blocker; |
| 17 | |
| 18 | auto & factory = FunctionFactory::instance(); |
| 19 | |
| 20 | for (const auto & [_, reg] : FunctionRegisterMap::instance()) |
| 21 | reg(factory); |
| 22 | } |
| 23 | |
| 24 | } |
no outgoing calls