63 _the_space, _gen_counters); |
63 _the_space, _gen_counters); |
64 #ifndef SERIALGC |
64 #ifndef SERIALGC |
65 if (UseParNewGC && ParallelGCThreads > 0) { |
65 if (UseParNewGC && ParallelGCThreads > 0) { |
66 typedef ParGCAllocBufferWithBOT* ParGCAllocBufferWithBOTPtr; |
66 typedef ParGCAllocBufferWithBOT* ParGCAllocBufferWithBOTPtr; |
67 _alloc_buffers = NEW_C_HEAP_ARRAY(ParGCAllocBufferWithBOTPtr, |
67 _alloc_buffers = NEW_C_HEAP_ARRAY(ParGCAllocBufferWithBOTPtr, |
68 ParallelGCThreads); |
68 ParallelGCThreads, mtGC); |
69 if (_alloc_buffers == NULL) |
69 if (_alloc_buffers == NULL) |
70 vm_exit_during_initialization("Could not allocate alloc_buffers"); |
70 vm_exit_during_initialization("Could not allocate alloc_buffers"); |
71 for (uint i = 0; i < ParallelGCThreads; i++) { |
71 for (uint i = 0; i < ParallelGCThreads; i++) { |
72 _alloc_buffers[i] = |
72 _alloc_buffers[i] = |
73 new ParGCAllocBufferWithBOT(OldPLABSize, _bts); |
73 new ParGCAllocBufferWithBOT(OldPLABSize, _bts); |