MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / throw_out_of_memory

Method throw_out_of_memory

src/runtime/context.cpp:1043–1049  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1041 }
1042
1043 void Context::throw_out_of_memory ( bool isStringHeap, uint64_t size, const LineInfo * at ) {
1044 if ( isStringHeap ) {
1045 throw_error_at(at, "out of string heap memory, requested %llu bytes, used %llu / limit %llu", (unsigned long long) size, (unsigned long long) stringHeap->bytesAllocated(), (unsigned long long) stringHeap->getLimit());
1046 } else {
1047 throw_error_at(at, "out of heap memory, requested %llu bytes, used %llu / limit %llu", (unsigned long long) size, (unsigned long long) heap->bytesAllocated(), (unsigned long long) heap->getLimit());
1048 }
1049 }
1050
1051 void Context::throw_error_ex ( DAS_FORMAT_STRING_PREFIX const char * message, ... ) {
1052 const int PRINT_BUFFER_SIZE = 8192;

Callers 4

AddMethod · 0.80
SetAddMethod · 0.80
impl_allocateStringMethod · 0.80
jit_alloc_persistentFunction · 0.80

Calls 1

bytesAllocatedMethod · 0.45

Tested by

no test coverage detected