reset static method

void reset()

Clears the current registry without freeing memory.

This is intended strictly for testing or controlled diagnostic resets. Using this during normal execution may hide real leaks.

Implementation

static void reset() => _registry.clear();