Mercurial > hg > graal-jvmci-8
comparison src/share/vm/memory/tenuredGeneration.cpp @ 7451:ca0a78017dc7
8005396: Use ParNew with only one thread instead of DefNew as default for CMS on single CPU machines
Reviewed-by: jmasa, jcoomes
author | brutisso |
---|---|
date | Sun, 30 Dec 2012 08:47:52 +0100 |
parents | aaf61e68b255 |
children | db9981fd3124 |
comparison
equal
deleted
inserted
replaced
7450:d275c3dc73e6 | 7451:ca0a78017dc7 |
---|---|
60 | 60 |
61 _space_counters = new CSpaceCounters(gen_name, 0, | 61 _space_counters = new CSpaceCounters(gen_name, 0, |
62 _virtual_space.reserved_size(), | 62 _virtual_space.reserved_size(), |
63 _the_space, _gen_counters); | 63 _the_space, _gen_counters); |
64 #ifndef SERIALGC | 64 #ifndef SERIALGC |
65 if (UseParNewGC && ParallelGCThreads > 0) { | 65 if (UseParNewGC) { |
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, mtGC); | 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"); |