src/share/vm/memory/barrierSet.hpp

changeset 548
ba764ed4b6f2
parent 435
a61af66fc99e
child 631
d1605aabd0a1
child 777
37f87013dfd8
     1.1 --- a/src/share/vm/memory/barrierSet.hpp	Fri Apr 11 09:56:35 2008 -0400
     1.2 +++ b/src/share/vm/memory/barrierSet.hpp	Sun Apr 13 17:43:42 2008 -0400
     1.3 @@ -54,9 +54,9 @@
     1.4  
     1.5    // These functions indicate whether a particular access of the given
     1.6    // kinds requires a barrier.
     1.7 -  virtual bool read_ref_needs_barrier(oop* field) = 0;
     1.8 +  virtual bool read_ref_needs_barrier(void* field) = 0;
     1.9    virtual bool read_prim_needs_barrier(HeapWord* field, size_t bytes) = 0;
    1.10 -  virtual bool write_ref_needs_barrier(oop* field, oop new_val) = 0;
    1.11 +  virtual bool write_ref_needs_barrier(void* field, oop new_val) = 0;
    1.12    virtual bool write_prim_needs_barrier(HeapWord* field, size_t bytes, juint val1, juint val2) = 0;
    1.13  
    1.14    // The first four operations provide a direct implementation of the
    1.15 @@ -64,7 +64,7 @@
    1.16    // directly, as appropriate.
    1.17  
    1.18    // Invoke the barrier, if any, necessary when reading the given ref field.
    1.19 -  virtual void read_ref_field(oop* field) = 0;
    1.20 +  virtual void read_ref_field(void* field) = 0;
    1.21  
    1.22    // Invoke the barrier, if any, necessary when reading the given primitive
    1.23    // "field" of "bytes" bytes in "obj".
    1.24 @@ -75,9 +75,9 @@
    1.25    // (For efficiency reasons, this operation is specialized for certain
    1.26    // barrier types.  Semantically, it should be thought of as a call to the
    1.27    // virtual "_work" function below, which must implement the barrier.)
    1.28 -  inline void write_ref_field(oop* field, oop new_val);
    1.29 +  inline void write_ref_field(void* field, oop new_val);
    1.30  protected:
    1.31 -  virtual void write_ref_field_work(oop* field, oop new_val) = 0;
    1.32 +  virtual void write_ref_field_work(void* field, oop new_val) = 0;
    1.33  public:
    1.34  
    1.35    // Invoke the barrier, if any, necessary when writing the "bytes"-byte

mercurial