mi_check_owned

Check safely if any pointer is part of the default heap of this thread.

extern (C) @nogc pure @system nothrow
bool
mi_check_owned
(
const(void)* p
)

Parameters

p
Type: const(void)*

Any pointer – not required to be previously allocated by us.

Return Value

Type: bool

true if p points to a block in default heap of this thread.

Note: expensive function, linear in the pages in the heap.

Meta