--- old/src/hotspot/share/adlc/arena.hpp 2018-11-14 01:37:09.813688294 -0800 +++ new/src/hotspot/share/adlc/arena.hpp 2018-11-14 01:37:09.419651618 -0800 @@ -25,6 +25,14 @@ #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: // @@ -42,7 +50,6 @@ void* new_array(size_t size); }; - // Base class for classes that constitute name spaces. class AllStatic {