src/hotspot/share/gc/shared/modRefBarrierSet.hpp
changeset 48961 120b61d50f85
parent 47998 fb0275c320a0
child 49164 7e958a8ebcd3
equal deleted inserted replaced
48960:040293c73621 48961:120b61d50f85
     1 /*
     1 /*
     2  * Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    43   template <DecoratorSet decorators, typename T>
    43   template <DecoratorSet decorators, typename T>
    44   inline void write_ref_field_post(T *addr, oop new_value) {}
    44   inline void write_ref_field_post(T *addr, oop new_value) {}
    45 
    45 
    46   // Causes all refs in "mr" to be assumed to be modified.
    46   // Causes all refs in "mr" to be assumed to be modified.
    47   virtual void invalidate(MemRegion mr) = 0;
    47   virtual void invalidate(MemRegion mr) = 0;
       
    48   virtual void write_region(MemRegion mr) = 0;
    48 
    49 
    49   // The caller guarantees that "mr" contains no references.  (Perhaps it's
    50   // The caller guarantees that "mr" contains no references.  (Perhaps it's
    50   // objects have been moved elsewhere.)
    51   // objects have been moved elsewhere.)
    51   virtual void clear(MemRegion mr) = 0;
    52   virtual void clear(MemRegion mr) = 0;
    52 
    53