96 public: |
96 public: |
97 int num_q() { return _num_q; } |
97 int num_q() { return _num_q; } |
98 DiscoveredList* discovered_soft_refs() { return _discoveredSoftRefs; } |
98 DiscoveredList* discovered_soft_refs() { return _discoveredSoftRefs; } |
99 static oop sentinel_ref() { return _sentinelRef; } |
99 static oop sentinel_ref() { return _sentinelRef; } |
100 static oop* adr_sentinel_ref() { return &_sentinelRef; } |
100 static oop* adr_sentinel_ref() { return &_sentinelRef; } |
101 ReferencePolicy* snap_policy(bool always_clear) { |
101 ReferencePolicy* setup_policy(bool always_clear) { |
102 _current_soft_ref_policy = always_clear ? |
102 _current_soft_ref_policy = always_clear ? |
103 _always_clear_soft_ref_policy : _default_soft_ref_policy; |
103 _always_clear_soft_ref_policy : _default_soft_ref_policy; |
104 _current_soft_ref_policy->snap(); // snapshot the policy threshold |
104 _current_soft_ref_policy->setup(); // snapshot the policy threshold |
105 return _current_soft_ref_policy; |
105 return _current_soft_ref_policy; |
106 } |
106 } |
107 |
107 |
108 public: |
108 public: |
109 // Process references with a certain reachability level. |
109 // Process references with a certain reachability level. |