equal
deleted
inserted
replaced
19 * or visit www.oracle.com if you need additional information or have any |
19 * or visit www.oracle.com if you need additional information or have any |
20 * questions. |
20 * questions. |
21 * |
21 * |
22 */ |
22 */ |
23 |
23 |
24 #ifndef SHARE_VM_GC_SHENANDOAH_SHENANDOAHPACER_INLINE_HPP |
24 #ifndef SHARE_GC_SHENANDOAH_SHENANDOAHPACER_INLINE_HPP |
25 #define SHARE_VM_GC_SHENANDOAH_SHENANDOAHPACER_INLINE_HPP |
25 #define SHARE_GC_SHENANDOAH_SHENANDOAHPACER_INLINE_HPP |
26 |
26 |
27 #include "gc/shenandoah/shenandoahPacer.hpp" |
27 #include "gc/shenandoah/shenandoahPacer.hpp" |
28 #include "runtime/atomic.hpp" |
28 #include "runtime/atomic.hpp" |
29 |
29 |
30 inline void ShenandoahPacer::report_mark(size_t words) { |
30 inline void ShenandoahPacer::report_mark(size_t words) { |
54 assert(ShenandoahPacing, "Only be here when pacing is enabled"); |
54 assert(ShenandoahPacing, "Only be here when pacing is enabled"); |
55 STATIC_ASSERT(sizeof(size_t) <= sizeof(intptr_t)); |
55 STATIC_ASSERT(sizeof(size_t) <= sizeof(intptr_t)); |
56 Atomic::add((intptr_t)words, &_progress); |
56 Atomic::add((intptr_t)words, &_progress); |
57 } |
57 } |
58 |
58 |
59 #endif //SHARE_VM_GC_SHENANDOAH_SHENANDOAHPACER_INLINE_HPP |
59 #endif // SHARE_GC_SHENANDOAH_SHENANDOAHPACER_INLINE_HPP |