Mercurial > hg > graal-jvmci-8
comparison src/share/vm/gc_implementation/g1/satbQueue.hpp @ 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 | 8847586c9037 |
children | c2844108a708 |
comparison
equal
deleted
inserted
replaced
20730:8210e5f2e21b | 20731:42c091d63c72 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2001, 2012, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2001, 2014, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | 4 * |
5 * This code is free software; you can redistribute it and/or modify it | 5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as | 6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
56 // created during a cycle and its SATB queue needs to be activated | 56 // created during a cycle and its SATB queue needs to be activated |
57 // before the thread starts running, we'll need to set its active | 57 // before the thread starts running, we'll need to set its active |
58 // field to true. This is done in JavaThread::initialize_queues(). | 58 // field to true. This is done in JavaThread::initialize_queues(). |
59 PtrQueue(qset, perm, false /* active */) { } | 59 PtrQueue(qset, perm, false /* active */) { } |
60 | 60 |
61 // Overrides PtrQueue::flush() so that it can filter the buffer | 61 // Process queue entries and free resources. |
62 // before it is flushed. | 62 void flush(); |
63 virtual void flush(); | |
64 | 63 |
65 // Overrides PtrQueue::should_enqueue_buffer(). See the method's | 64 // Overrides PtrQueue::should_enqueue_buffer(). See the method's |
66 // definition for more information. | 65 // definition for more information. |
67 virtual bool should_enqueue_buffer(); | 66 virtual bool should_enqueue_buffer(); |
68 | 67 |