@@ -16,21 +16,21 @@ RuntimeAllocator& RuntimeAllocator::get() noexcept {
1616
1717RuntimeAllocator::RuntimeAllocator (size_t script_mem_size, size_t min_extra_mem_size, size_t oom_handling_mem_size)
1818 : m_min_extra_mem_size(min_extra_mem_size) {
19- kphp::log::debug (" create runtime allocator -> {:p}: script memory -> {}, oom handling size -> {}" , reinterpret_cast <void *>(this ), script_mem_size,
20- oom_handling_mem_size);
19+ // kphp::log::debug("create runtime allocator -> {:p}: script memory -> {}, oom handling size -> {}", reinterpret_cast<void*>(this), script_mem_size,
20+ // oom_handling_mem_size);
2121 void * buffer{alloc_global_memory (script_mem_size)};
2222 memory_resource.init (buffer, script_mem_size, oom_handling_mem_size);
2323}
2424
2525void RuntimeAllocator::init (void * buffer, size_t script_mem_size, size_t oom_handling_mem_size) {
2626 kphp::log::assertion (buffer != nullptr );
27- kphp::log::debug (" init runtime allocator -> {:p}: buffer -> {:p}, script memory -> {}, oom handling size -> {}" , reinterpret_cast <void *>(this ), buffer,
28- script_mem_size, oom_handling_mem_size);
27+ // kphp::log::debug("init runtime allocator -> {:p}: buffer -> {:p}, script memory -> {}, oom handling size -> {}", reinterpret_cast<void*>(this), buffer,
28+ // script_mem_size, oom_handling_mem_size);
2929 memory_resource.init (buffer, script_mem_size, oom_handling_mem_size);
3030}
3131
3232void RuntimeAllocator::free () {
33- kphp::log::debug (" free runtime allocator -> {:p}" , reinterpret_cast <void *>(this ));
33+ // kphp::log::debug("free runtime allocator -> {:p}", reinterpret_cast<void*>(this));
3434 auto * extra_memory{memory_resource.get_extra_memory_head ()};
3535 while (extra_memory->get_pool_payload_size () != 0 ) {
3636 auto * extra_memory_to_release{extra_memory};
@@ -111,7 +111,7 @@ void RuntimeAllocator::request_extra_memory(size_t requested_size) noexcept {
111111 // Take into account internal layout of `memory_resource::extra_memory_pool`
112112 extra_mem_size += sizeof (memory_resource::extra_memory_pool);
113113
114- kphp::log::debug (" requested extra memory pool with size {} bytes, will be allocated {} bytes" , requested_size, extra_mem_size);
114+ // kphp::log::debug("requested extra memory pool with size {} bytes, will be allocated {} bytes", requested_size, extra_mem_size);
115115
116116 auto * extra_mem{alloc_global_memory (extra_mem_size)};
117117 memory_resource.add_extra_memory (new (extra_mem) memory_resource::extra_memory_pool{extra_mem_size});
0 commit comments