stub_mem