CUBRID Engine  latest
customheaps.h
Go to the documentation of this file.
1 /*
2  * Copyright 2008 Search Solution Corporation
3  * Copyright 2016 CUBRID Corporation
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  */
18 // -*- C++ -*-
19 
20 #ifndef _CUSTOMHEAPS_H_
21 #define _CUSTOMHEAPS_H_
22 
23 #include "config.h"
24 
25 extern UINTPTR hl_register_fixed_heap (int chunk_size);
26 extern void hl_unregister_fixed_heap (UINTPTR heap_id);
27 extern void *hl_fixed_alloc (UINTPTR heap_id, size_t sz);
28 extern void hl_fixed_free (UINTPTR heap_id, void *ptr);
29 
30 extern UINTPTR hl_register_ostk_heap (int chunk_size);
31 extern void hl_unregister_ostk_heap (UINTPTR heap_id);
32 extern void *hl_ostk_alloc (UINTPTR heap_id, size_t sz);
33 extern void hl_ostk_free (UINTPTR heap_id, void *ptr);
34 
35 extern UINTPTR hl_register_lea_heap (void);
36 extern void hl_unregister_lea_heap (UINTPTR heap_id);
37 extern void *hl_lea_alloc (UINTPTR heap_id, size_t sz);
38 extern void *hl_lea_realloc (UINTPTR heap_id, void *ptr, size_t sz);
39 extern void hl_lea_free (UINTPTR heap_id, void *ptr);
40 extern void hl_clear_lea_heap (UINTPTR heap_id);
41 
42 #endif /* _CUSTOMHEAPS_H_ */
void hl_unregister_ostk_heap(UINTPTR heap_id)
void hl_fixed_free(UINTPTR heap_id, void *ptr)
Definition: customheaps.cpp:77
void * hl_lea_realloc(UINTPTR heap_id, void *ptr, size_t sz)
Definition: lea_heap.c:361
UINTPTR hl_register_lea_heap(void)
Definition: lea_heap.c:213
void hl_clear_lea_heap(UINTPTR heap_id)
Definition: lea_heap.c:272
void hl_ostk_free(UINTPTR heap_id, void *ptr)
UINTPTR hl_register_fixed_heap(int chunk_size)
Definition: customheaps.cpp:43
void * hl_ostk_alloc(UINTPTR heap_id, size_t sz)
void hl_unregister_lea_heap(UINTPTR heap_id)
Definition: lea_heap.c:299
void hl_unregister_fixed_heap(UINTPTR heap_id)
Definition: customheaps.cpp:55
void * hl_fixed_alloc(UINTPTR heap_id, size_t sz)
Definition: customheaps.cpp:66
UINTPTR hl_register_ostk_heap(int chunk_size)
Definition: customheaps.cpp:96
void * hl_lea_alloc(UINTPTR heap_id, size_t sz)
Definition: lea_heap.c:326
void hl_lea_free(UINTPTR heap_id, void *ptr)
Definition: lea_heap.c:395