A brief file description. More...
#include "libts.h"
#include "HdrHeap.h"
#include "URL.h"
#include "MIME.h"
#include "HTTP.h"
#include "I_EventSystem.h"
#include <ts/TestBox.h>
Go to the source code of this file.
Data Structures | |
struct | StrTest |
Defines | |
#define | MAX_LOST_STR_SPACE 1024 |
Functions | |
void | obj_describe (HdrHeapObjImpl *obj, bool recurse) |
HdrHeap * | new_HdrHeap (int size) |
HdrStrHeap * | new_HdrStrHeap (int requested_size) |
REGRESSION_TEST() | HdrHeap_Coalesce (RegressionTest *t, int, int *pstatus) |
Variables | |
Allocator | hdrHeapAllocator ("hdrHeap", HDR_HEAP_DEFAULT_SIZE) |
static HdrHeap | proto_heap |
Allocator | strHeapAllocator ("hdrStrHeap", HDR_STR_HEAP_DEFAULT_SIZE) |
static HdrStrHeap | str_proto_heap |
A brief file description.
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Definition in file HdrHeap.cc.
#define MAX_LOST_STR_SPACE 1024 |
Definition at line 40 of file HdrHeap.cc.
Referenced by HdrHeap::allocate_str(), and HdrHeap::inherit_string_heaps().
REGRESSION_TEST() HdrHeap_Coalesce | ( | RegressionTest * | t, | |
int | , | |||
int * | pstatus | |||
) |
Definition at line 1203 of file HdrHeap.cc.
References HdrHeap::allocate_str(), HdrHeap::destroy(), StrHeapDesc::m_heap_start, URLImpl::m_len_path, HdrHeap::m_next, Ptr< T >::m_ptr, URLImpl::m_ptr_path, HdrHeap::m_read_write_heap, HdrHeap::m_ronly_heap, new_HdrHeap(), url_create(), and url_path_set().
HdrHeap* new_HdrHeap | ( | int | size | ) |
Definition at line 116 of file HdrHeap.cc.
References ats_malloc(), HDR_HEAP_DEFAULT_SIZE, hdrHeapAllocator, HdrHeap::init(), HdrHeap::m_size, this_ethread(), and THREAD_ALLOC.
Referenced by HdrHeap::allocate_obj(), MIMEHdr::copy(), HTTPHdr::copy(), URL::create(), MIMEHdr::create(), HTTPHdr::create(), HdrHeap_Coalesce(), MIMEHdr::parse(), and TSMBufferCreate().
HdrStrHeap* new_HdrStrHeap | ( | int | requested_size | ) |
Definition at line 139 of file HdrHeap.cc.
References ats_malloc(), HDR_STR_HEAP_DEFAULT_SIZE, ink_assert, ROUND, strHeapAllocator, this_ethread(), and THREAD_ALLOC.
Referenced by HdrHeap::allocate_str(), and HdrHeap::coalesce_str_heaps().
void obj_describe | ( | HdrHeapObjImpl * | obj, | |
bool | recurse | |||
) |
Definition at line 52 of file HdrHeap.cc.
References Debug, HDR_HEAP_OBJ_EMPTY, HDR_HEAP_OBJ_FIELD_BLOCK, HDR_HEAP_OBJ_HTTP_HEADER, HDR_HEAP_OBJ_MIME_HEADER, HDR_HEAP_OBJ_RAW, HDR_HEAP_OBJ_URL, http_hdr_describe(), HdrHeapObjImpl::m_length, HdrHeapObjImpl::m_obj_flags, HdrHeapObjImpl::m_type, mime_field_block_describe(), mime_hdr_describe(), and url_describe().
Referenced by HttpTransact::EndRemapRequest(), HttpTransact::HandleRequest(), http_hdr_describe(), mime_hdr_describe(), and HttpTransact::StartRemapRequest().
Allocator hdrHeapAllocator("hdrHeap", HDR_HEAP_DEFAULT_SIZE) |
Referenced by HdrHeap::destroy(), and new_HdrHeap().
HdrHeap proto_heap [static] |
Definition at line 43 of file HdrHeap.cc.
HdrStrHeap str_proto_heap [static] |
Definition at line 46 of file HdrHeap.cc.
Allocator strHeapAllocator("hdrStrHeap", HDR_STR_HEAP_DEFAULT_SIZE) |
Referenced by HdrStrHeap::free(), and new_HdrStrHeap().