hotspot/src/share/vm/gc/g1/g1EvacStats.inline.hpp
changeset 40655 9f644073d3a0
parent 34230 b9c64b7c06c9
equal deleted inserted replaced
40654:d4f8e348420a 40655:9f644073d3a0
     1 /*
     1 /*
     2  * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2015, 2016, 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.
    24 
    24 
    25 #ifndef SHARE_VM_GC_G1_G1EVACSTATS_INLINE_HPP
    25 #ifndef SHARE_VM_GC_G1_G1EVACSTATS_INLINE_HPP
    26 #define SHARE_VM_GC_G1_G1EVACSTATS_INLINE_HPP
    26 #define SHARE_VM_GC_G1_G1EVACSTATS_INLINE_HPP
    27 
    27 
    28 #include "gc/g1/g1EvacStats.hpp"
    28 #include "gc/g1/g1EvacStats.hpp"
    29 #include "runtime/atomic.inline.hpp"
    29 #include "runtime/atomic.hpp"
    30 
    30 
    31 inline void G1EvacStats::add_direct_allocated(size_t value) {
    31 inline void G1EvacStats::add_direct_allocated(size_t value) {
    32   Atomic::add_ptr(value, &_direct_allocated);
    32   Atomic::add_ptr(value, &_direct_allocated);
    33 }
    33 }
    34 
    34