9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #ifndef SHARE_VM_GC_G1_PTRQUEUE_HPP
26 #define SHARE_VM_GC_G1_PTRQUEUE_HPP
27
28 #include "memory/allocation.hpp"
29 #include "utilities/sizes.hpp"
30
31 // There are various techniques that require threads to be able to log
32 // addresses. For example, a generational write barrier might log
33 // the addresses of modified old-generation objects. This type supports
34 // this operation.
35
36 class BufferNode;
37 class PtrQueueSet;
38 class PtrQueue VALUE_OBJ_CLASS_SPEC {
39 friend class VMStructs;
40
41 // Noncopyable - not defined.
42 PtrQueue(const PtrQueue&);
43 PtrQueue& operator=(const PtrQueue&);
44
45 // The ptr queue set to which this queue belongs.
46 PtrQueueSet* const _qset;
47
48 // Whether updates should be logged.
|
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #ifndef SHARE_VM_GC_G1_PTRQUEUE_HPP
26 #define SHARE_VM_GC_G1_PTRQUEUE_HPP
27
28 #include "memory/allocation.hpp"
29 #include "utilities/align.hpp"
30 #include "utilities/sizes.hpp"
31
32 // There are various techniques that require threads to be able to log
33 // addresses. For example, a generational write barrier might log
34 // the addresses of modified old-generation objects. This type supports
35 // this operation.
36
37 class BufferNode;
38 class PtrQueueSet;
39 class PtrQueue VALUE_OBJ_CLASS_SPEC {
40 friend class VMStructs;
41
42 // Noncopyable - not defined.
43 PtrQueue(const PtrQueue&);
44 PtrQueue& operator=(const PtrQueue&);
45
46 // The ptr queue set to which this queue belongs.
47 PtrQueueSet* const _qset;
48
49 // Whether updates should be logged.
|