diff options
| -rw-r--r-- | runtime/gc/accounting/atomic_stack.h | 4 | ||||
| -rw-r--r-- | runtime/gc/collector/concurrent_copying.cc | 2 | ||||
| -rw-r--r-- | runtime/gc/collector/concurrent_copying.h | 5 |
3 files changed, 8 insertions, 3 deletions
diff --git a/runtime/gc/accounting/atomic_stack.h b/runtime/gc/accounting/atomic_stack.h index db9568a198..351798efd1 100644 --- a/runtime/gc/accounting/atomic_stack.h +++ b/runtime/gc/accounting/atomic_stack.h @@ -17,6 +17,8 @@ #ifndef ART_RUNTIME_GC_ACCOUNTING_ATOMIC_STACK_H_ #define ART_RUNTIME_GC_ACCOUNTING_ATOMIC_STACK_H_ +#include <sys/mman.h> // For the PROT_* and MAP_* constants. + #include <algorithm> #include <memory> #include <string> @@ -25,7 +27,7 @@ #include "base/logging.h" #include "base/macros.h" #include "mem_map.h" -#include "stack.h" +#include "stack_reference.h" namespace art { namespace gc { diff --git a/runtime/gc/collector/concurrent_copying.cc b/runtime/gc/collector/concurrent_copying.cc index d5af29e4c6..4192f34879 100644 --- a/runtime/gc/collector/concurrent_copying.cc +++ b/runtime/gc/collector/concurrent_copying.cc @@ -22,8 +22,10 @@ #include "base/stl_util.h" #include "base/systrace.h" #include "debugger.h" +#include "gc/accounting/atomic_stack.h" #include "gc/accounting/heap_bitmap-inl.h" #include "gc/accounting/mod_union_table-inl.h" +#include "gc/accounting/read_barrier_table.h" #include "gc/accounting/space_bitmap-inl.h" #include "gc/gc_pause_listener.h" #include "gc/reference_processor.h" diff --git a/runtime/gc/collector/concurrent_copying.h b/runtime/gc/collector/concurrent_copying.h index c21520d2fa..f8773145f0 100644 --- a/runtime/gc/collector/concurrent_copying.h +++ b/runtime/gc/collector/concurrent_copying.h @@ -23,8 +23,6 @@ #include "jni.h" #include "object_callbacks.h" #include "offsets.h" -#include "gc/accounting/atomic_stack.h" -#include "gc/accounting/read_barrier_table.h" #include "gc/accounting/space_bitmap.h" #include "mirror/object.h" #include "mirror/object_reference.h" @@ -40,8 +38,11 @@ class RootInfo; namespace gc { namespace accounting { + template<typename T> class AtomicStack; + typedef AtomicStack<mirror::Object> ObjectStack; typedef SpaceBitmap<kObjectAlignment> ContinuousSpaceBitmap; class HeapBitmap; + class ReadBarrierTable; } // namespace accounting namespace space { |