Mercurial > hg > graal-jvmci-8
comparison src/share/vm/memory/referencePolicy.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 | ad8c8ca4ab0f |
comparison
equal
deleted
inserted
replaced
455:434912c745cf | 457:27a80744a83b |
---|---|
28 | 28 |
29 class ReferencePolicy : public CHeapObj { | 29 class ReferencePolicy : public CHeapObj { |
30 public: | 30 public: |
31 virtual bool should_clear_reference(oop p) { ShouldNotReachHere(); return true; } | 31 virtual bool should_clear_reference(oop p) { ShouldNotReachHere(); return true; } |
32 // Capture state (of-the-VM) information needed to evaluate the policy | 32 // Capture state (of-the-VM) information needed to evaluate the policy |
33 virtual void snap() { /* do nothing */ } | 33 virtual void setup() { /* do nothing */ } |
34 }; | 34 }; |
35 | 35 |
36 class NeverClearPolicy : public ReferencePolicy { | 36 class NeverClearPolicy : public ReferencePolicy { |
37 public: | 37 public: |
38 bool should_clear_reference(oop p) { return false; } | 38 bool should_clear_reference(oop p) { return false; } |
49 | 49 |
50 public: | 50 public: |
51 LRUCurrentHeapPolicy(); | 51 LRUCurrentHeapPolicy(); |
52 | 52 |
53 // Capture state (of-the-VM) information needed to evaluate the policy | 53 // Capture state (of-the-VM) information needed to evaluate the policy |
54 void snap(); | 54 void setup(); |
55 bool should_clear_reference(oop p); | 55 bool should_clear_reference(oop p); |
56 }; | 56 }; |
57 | 57 |
58 class LRUMaxHeapPolicy : public ReferencePolicy { | 58 class LRUMaxHeapPolicy : public ReferencePolicy { |
59 private: | 59 private: |
61 | 61 |
62 public: | 62 public: |
63 LRUMaxHeapPolicy(); | 63 LRUMaxHeapPolicy(); |
64 | 64 |
65 // Capture state (of-the-VM) information needed to evaluate the policy | 65 // Capture state (of-the-VM) information needed to evaluate the policy |
66 void snap(); | 66 void setup(); |
67 bool should_clear_reference(oop p); | 67 bool should_clear_reference(oop p); |
68 }; | 68 }; |