9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #ifndef SHARE_ADLC_ARENA_HPP
26 #define SHARE_ADLC_ARENA_HPP
27
28 void* AllocateHeap(size_t size);
29
30 // All classes in adlc may be derived
31 // from one of the following allocation classes:
32 //
33 // For objects allocated in the C-heap (managed by: malloc & free).
34 // - CHeapObj
35 //
36 // For classes used as name spaces.
37 // - AllStatic
38 //
39
40 class CHeapObj {
41 public:
42 void* operator new(size_t size) throw();
43 void operator delete(void* p);
44 void* new_array(size_t size);
45 };
46
47 // Base class for classes that constitute name spaces.
48
|
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #ifndef SHARE_ADLC_ARENA_HPP
26 #define SHARE_ADLC_ARENA_HPP
27
28 void* AllocateHeap(size_t size);
29 void* ReAllocateHeap(void* old_ptr, size_t size);
30
31 // All classes in adlc may be derived
32 // from one of the following allocation classes:
33 //
34 // For objects allocated in the C-heap (managed by: malloc & free).
35 // - CHeapObj
36 //
37 // For classes used as name spaces.
38 // - AllStatic
39 //
40
41 class CHeapObj {
42 public:
43 void* operator new(size_t size) throw();
44 void operator delete(void* p);
45 void* new_array(size_t size);
46 };
47
48 // Base class for classes that constitute name spaces.
49
|