< prev index next >

src/hotspot/share/gc/shared/modRefBarrierSet.inline.hpp

include problems

7  *                                                                                                                                   
8  * This code is distributed in the hope that it will be useful, but WITHOUT                                                          
9  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or                                                             
10  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License                                                             
11  * version 2 for more details (a copy is included in the LICENSE file that                                                           
12  * accompanied this code).                                                                                                           
13  *                                                                                                                                   
14  * You should have received a copy of the GNU General Public License version                                                         
15  * 2 along with this work; if not, write to the Free Software Foundation,                                                            
16  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.                                                                     
17  *                                                                                                                                   
18  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA                                                           
19  * or visit www.oracle.com if you need additional information or have any                                                            
20  * questions.                                                                                                                        
21  *                                                                                                                                   
22  */                                                                                                                                  
23 
24 #ifndef SHARE_VM_GC_SHARED_MODREFBARRIERSET_INLINE_HPP                                                                               
25 #define SHARE_VM_GC_SHARED_MODREFBARRIERSET_INLINE_HPP                                                                               
26 
                                                                                                                                     
27 #include "gc/shared/modRefBarrierSet.hpp"                                                                                            
28 #include "oops/klass.inline.hpp"                                                                                                     
29 #include "oops/objArrayOop.hpp"                                                                                                      
30 #include "oops/oop.hpp"                                                                                                              
31 
32 template <DecoratorSet decorators, typename BarrierSetT>                                                                             
33 template <typename T>                                                                                                                
34 inline void ModRefBarrierSet::AccessBarrier<decorators, BarrierSetT>::                                                               
35 oop_store_in_heap(T* addr, oop value) {                                                                                              
36   BarrierSetT *bs = barrier_set_cast<BarrierSetT>(barrier_set());                                                                    
37   bs->template write_ref_field_pre<decorators>(addr);                                                                                
38   Raw::oop_store(addr, value);                                                                                                       
39   bs->template write_ref_field_post<decorators>(addr, value);                                                                        
40 }                                                                                                                                    
41 
42 template <DecoratorSet decorators, typename BarrierSetT>                                                                             
43 template <typename T>                                                                                                                
44 inline oop ModRefBarrierSet::AccessBarrier<decorators, BarrierSetT>::                                                                
45 oop_atomic_cmpxchg_in_heap(oop new_value, T* addr, oop compare_value) {                                                              

7  *
8  * This code is distributed in the hope that it will be useful, but WITHOUT
9  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
11  * version 2 for more details (a copy is included in the LICENSE file that
12  * accompanied this code).
13  *
14  * You should have received a copy of the GNU General Public License version
15  * 2 along with this work; if not, write to the Free Software Foundation,
16  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
17  *
18  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
19  * or visit www.oracle.com if you need additional information or have any
20  * questions.
21  *
22  */
23 
24 #ifndef SHARE_VM_GC_SHARED_MODREFBARRIERSET_INLINE_HPP
25 #define SHARE_VM_GC_SHARED_MODREFBARRIERSET_INLINE_HPP
26 
27 #include "gc/shared/barrierSet.inline.hpp"
28 #include "gc/shared/modRefBarrierSet.hpp"
29 #include "oops/klass.inline.hpp"
30 #include "oops/objArrayOop.hpp"
31 #include "oops/oop.hpp"
32 
33 template <DecoratorSet decorators, typename BarrierSetT>
34 template <typename T>
35 inline void ModRefBarrierSet::AccessBarrier<decorators, BarrierSetT>::
36 oop_store_in_heap(T* addr, oop value) {
37   BarrierSetT *bs = barrier_set_cast<BarrierSetT>(barrier_set());
38   bs->template write_ref_field_pre<decorators>(addr);
39   Raw::oop_store(addr, value);
40   bs->template write_ref_field_post<decorators>(addr, value);
41 }
42 
43 template <DecoratorSet decorators, typename BarrierSetT>
44 template <typename T>
45 inline oop ModRefBarrierSet::AccessBarrier<decorators, BarrierSetT>::
46 oop_atomic_cmpxchg_in_heap(oop new_value, T* addr, oop compare_value) {
< prev index next >