Mercurial > hg > truffle
comparison src/share/vm/gc_implementation/g1/satbQueue.cpp @ 20731:42c091d63c72
8048949: Requeue queue implementation
Summary: devirtualize flush and move calls
Reviewed-by: brutisso, tschatzl, mschoene
Contributed-by: kim.barrett@oracle.com
author | tschatzl |
---|---|
date | Mon, 04 Aug 2014 10:49:40 -0400 |
parents | 78bbf4d43a14 |
children | c2844108a708 |
comparison
equal
deleted
inserted
replaced
20730:8210e5f2e21b | 20731:42c091d63c72 |
---|---|
37 void ObjPtrQueue::flush() { | 37 void ObjPtrQueue::flush() { |
38 // The buffer might contain refs into the CSet. We have to filter it | 38 // The buffer might contain refs into the CSet. We have to filter it |
39 // first before we flush it, otherwise we might end up with an | 39 // first before we flush it, otherwise we might end up with an |
40 // enqueued buffer with refs into the CSet which breaks our invariants. | 40 // enqueued buffer with refs into the CSet which breaks our invariants. |
41 filter(); | 41 filter(); |
42 PtrQueue::flush(); | 42 flush_impl(); |
43 } | 43 } |
44 | 44 |
45 // This method removes entries from an SATB buffer that will not be | 45 // This method removes entries from an SATB buffer that will not be |
46 // useful to the concurrent marking threads. An entry is removed if it | 46 // useful to the concurrent marking threads. An entry is removed if it |
47 // satisfies one of the following conditions: | 47 // satisfies one of the following conditions: |