150 } |
150 } |
151 #endif |
151 #endif |
152 |
152 |
153 // Public methods that get called within the scope of the closure |
153 // Public methods that get called within the scope of the closure |
154 void allocate() { |
154 void allocate() { |
155 _list = NEW_C_HEAP_ARRAY(Handle, _count); |
155 _list = NEW_C_HEAP_ARRAY(Handle, _count, mtInternal); |
156 assert(_list != NULL, "Out of memory"); |
156 assert(_list != NULL, "Out of memory"); |
157 if (_list == NULL) { |
157 if (_list == NULL) { |
158 _count = 0; |
158 _count = 0; |
159 } |
159 } |
160 } |
160 } |