MCPcopy Create free account
hub / github.com/Gecode/gecode / ralloc

Method ralloc

gecode/support/heap.hpp:356–368  ·  view source on GitHub ↗

* Wrappers for raw allocation routines * */

Source from the content-addressed store, hash-verified

354 *
355 */
356 forceinline void*
357 Heap::ralloc(size_t s) {
358 void* p = Support::allocator.alloc(s);
359#ifdef GECODE_PEAKHEAP
360 _m.acquire();
361 _cur += GECODE_MSIZE(p);
362 _peak = std::max(_peak,_cur);
363 _m.release();
364#endif
365 if (p != nullptr)
366 return p;
367 throw MemoryExhausted();
368 }
369
370 forceinline void
371 Heap::rfree(void* p) {

Callers 13

Engine<Tracer>Function · 0.45
bab.hppFile · 0.45
propagateMethod · 0.45
propagateMethod · 0.45
propagateMethod · 0.45
unionNCardFunction · 0.45
partitionNXiFunction · 0.45
partitionNXiUBFunction · 0.45
partitionNXiLBFunction · 0.45
operator newMethod · 0.45
aFunction · 0.45
allocateMethod · 0.45

Calls 4

maxFunction · 0.50
allocMethod · 0.45
acquireMethod · 0.45
releaseMethod · 0.45

Tested by

no test coverage detected