< prev index next >
src/hotspot/share/gc/shared/satbMarkQueue.hpp
Print this page
rev 53864 : imported patch queue_access
rev 53867 : imported patch remove_shared_satb
rev 53868 : imported patch remove_shared_satb_lock
*** 26,36 ****
#define SHARE_GC_SHARED_SATBMARKQUEUE_HPP
#include "gc/shared/ptrQueue.hpp"
#include "memory/allocation.hpp"
! class JavaThread;
class Monitor;
class SATBMarkQueueSet;
// Base class for processing the contents of a SATB buffer.
class SATBBufferClosure : public StackObj {
--- 26,36 ----
#define SHARE_GC_SHARED_SATBMARKQUEUE_HPP
#include "gc/shared/ptrQueue.hpp"
#include "memory/allocation.hpp"
! class Thread;
class Monitor;
class SATBMarkQueueSet;
// Base class for processing the contents of a SATB buffer.
class SATBBufferClosure : public StackObj {
*** 90,100 ****
using PtrQueue::byte_width_of_active;
};
class SATBMarkQueueSet: public PtrQueueSet {
- SATBMarkQueue _shared_satb_queue;
size_t _buffer_enqueue_threshold;
#ifdef ASSERT
void dump_active_states(bool expected_active);
void verify_active_states(bool expected_active);
--- 90,99 ----
*** 110,124 ****
}
void initialize(Monitor* cbl_mon,
BufferNode::Allocator* allocator,
size_t process_completed_buffers_threshold,
! uint buffer_enqueue_threshold_percentage,
! Mutex* lock);
public:
! virtual SATBMarkQueue& satb_queue_for_thread(JavaThread* const t) const = 0;
// Apply "set_active(active)" to all SATB queues in the set. It should be
// called only with the world stopped. The method will assert that the
// SATB queues of all threads it visits, as well as the SATB queue
// set itself, has an active value same as expected_active.
--- 109,122 ----
}
void initialize(Monitor* cbl_mon,
BufferNode::Allocator* allocator,
size_t process_completed_buffers_threshold,
! uint buffer_enqueue_threshold_percentage);
public:
! virtual SATBMarkQueue& satb_queue_for_thread(Thread* const t) const = 0;
// Apply "set_active(active)" to all SATB queues in the set. It should be
// called only with the world stopped. The method will assert that the
// SATB queues of all threads it visits, as well as the SATB queue
// set itself, has an active value same as expected_active.
*** 139,150 ****
#ifndef PRODUCT
// Helpful for debugging
void print_all(const char* msg);
#endif // PRODUCT
- SATBMarkQueue* shared_satb_queue() { return &_shared_satb_queue; }
-
// If a marking is being abandoned, reset any unprocessed log buffers.
void abandon_partial_marking();
};
inline void SATBMarkQueue::filter() {
--- 137,146 ----
< prev index next >