MCPcopy Create free account
hub / github.com/Singular/Singular / alloc

Method alloc

kernel/oswrapper/vspace.h:469–471  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

467 return VRef<U>::from_vaddr(vaddr);
468 }
469 static VRef<T> alloc(size_t n = 1) {
470 return VRef<T>(internals::vmem_alloc(n * sizeof(T)));
471 }
472 void free() {
473 as_ptr()->~T(); // explicitly call destructor
474 internals::vmem_free(vaddr);

Callers

nothing calls this directly

Calls 1

vmem_allocFunction · 0.85

Tested by

no test coverage detected