< prev index next >

src/hotspot/share/adlc/arena.hpp

Print this page

        

*** 23,32 **** --- 23,40 ---- */ #ifndef SHARE_VM_ADLC_ARENA_HPP #define SHARE_VM_ADLC_ARENA_HPP + class AllocFailStrategy { + public: + enum AllocFailEnum { EXIT_OOM, RETURN_NULL }; + }; + typedef AllocFailStrategy::AllocFailEnum AllocFailType; + + void* AllocateHeap(size_t size, AllocFailType alloc_fail_mode = AllocFailStrategy::EXIT_OOM); + // All classes in adlc may be derived // from one of the following allocation classes: // // For objects allocated in the C-heap (managed by: malloc & free). // - CHeapObj
*** 40,50 **** void* operator new(size_t size) throw(); void operator delete(void* p); void* new_array(size_t size); }; - // Base class for classes that constitute name spaces. class AllStatic { public: void* operator new(size_t size) throw(); --- 48,57 ----
< prev index next >