< prev index next >

src/share/vm/gc/cms/parNewGeneration.cpp

Print this page
rev 8853 : imported patch mikael-erik-suggestions
rev 8867 : [mq]: bengt-refactoring

@@ -246,12 +246,11 @@
           buf_space  = sp->par_allocate(buf_size);
           free_bytes = sp->free();
         }
       }
       if (buf_space != NULL) {
-        plab->set_word_size(buf_size);
-        plab->set_buf(buf_space);
+        plab->set_buf(buf_space, buf_size);
         record_survivor_plab(buf_space, buf_size);
         obj = plab->allocate_aligned(word_sz, SurvivorAlignmentInBytes);
         // Note that we cannot compare buf_size < word_sz below
         // because of AlignmentReserve (see PLAB::allocate()).
         assert(obj != NULL || plab->words_remaining() < word_sz,
< prev index next >