Mercurial > hg > truffle
comparison src/share/vm/memory/referenceProcessor.hpp @ 457:27a80744a83b
6778647: snap(), snap_policy() should be renamed setup(), setup_policy()
Summary: Renamed Reference{Policy,Pocessor} methods from snap{,_policy}() to setup{,_policy}()
Reviewed-by: apetrusenko
author | ysr |
---|---|
date | Mon, 01 Dec 2008 23:25:24 -0800 |
parents | c96030fff130 |
children | 4788266644c1 |
comparison
equal
deleted
inserted
replaced
455:434912c745cf | 457:27a80744a83b |
---|---|
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. |