module documentation

Undocumented

Async Function async_test_context_locality Undocumented
Async Function concurrent_context1 Undocumented
Async Function concurrent_context2 Undocumented
Function concurrent_thread1 Undocumented
Function concurrent_thread2 Undocumented
Function get_module Add a memory policy that returns a false pointer 64 bytes into the actual allocation, and fill the prefix with some text. Then check at each memory manipulation that the prefix exists, to make sure all alloc/realloc/ free/calloc go via the functions here.
Function test_context_locality Undocumented
Function test_default_policy_singleton Undocumented
Function test_new_policy Undocumented
Function test_owner_is_base Undocumented
Function test_policy_propagation Undocumented
Function test_set_policy Undocumented
Function test_switch_owner Undocumented
Function test_thread_locality Undocumented
async def async_test_context_locality(get_module): (source)

Undocumented

async def concurrent_context1(get_module, orig_policy_name, event): (source)

Undocumented

async def concurrent_context2(get_module, orig_policy_name, event): (source)

Undocumented

def concurrent_thread1(get_module, event): (source)

Undocumented

def concurrent_thread2(get_module, event): (source)

Undocumented

@pytest.fixture
def get_module(tmp_path): (source)

Add a memory policy that returns a false pointer 64 bytes into the actual allocation, and fill the prefix with some text. Then check at each memory manipulation that the prefix exists, to make sure all alloc/realloc/ free/calloc go via the functions here.

def test_context_locality(get_module): (source)

Undocumented

def test_default_policy_singleton(get_module): (source)

Undocumented

@pytest.mark.slow
def test_new_policy(get_module): (source)

Undocumented

def test_owner_is_base(get_module): (source)

Undocumented

def test_policy_propagation(get_module): (source)

Undocumented

def test_set_policy(get_module): (source)

Undocumented

@pytest.mark.xfail((sys.implementation.name == 'pypy'), reason='bad interaction between getenv and os.environ inside pytest')
@pytest.mark.parametrize('policy', ['0', '1', None])
def test_switch_owner(get_module, policy): (source)

Undocumented

def test_thread_locality(get_module): (source)

Undocumented