Fix cpplint errors.
Change-Id: I21f7423ebe69a77d456b0d318de73448489d2df4
diff --git a/runtime/gc/allocator/rosalloc.h b/runtime/gc/allocator/rosalloc.h
index 5dda80c..c81306f 100644
--- a/runtime/gc/allocator/rosalloc.h
+++ b/runtime/gc/allocator/rosalloc.h
@@ -151,12 +151,12 @@
//
class Run {
public:
- byte magic_num_; // The magic number used for debugging.
- byte size_bracket_idx_; // The index of the size bracket of this run.
- byte is_thread_local_; // True if this run is used as a thread-local run.
- byte to_be_bulk_freed_; // Used within BulkFree() to flag a run that's involved with a bulk free.
- uint32_t top_slot_idx_; // The top slot index when this run is in bump index mode.
- uint32_t alloc_bit_map_[0]; // The bit map that allocates if each slot is in use.
+ byte magic_num_; // The magic number used for debugging.
+ byte size_bracket_idx_; // The index of the size bracket of this run.
+ byte is_thread_local_; // True if this run is used as a thread-local run.
+ byte to_be_bulk_freed_; // Used within BulkFree() to flag a run that's involved with a bulk free.
+ uint32_t top_slot_idx_; // The top slot index when this run is in bump index mode.
+ uint32_t alloc_bit_map_[0]; // The bit map that allocates if each slot is in use.
// bulk_free_bit_map_[] : The bit map that is used for GC to
// temporarily mark the slots to free without using a lock. After
diff --git a/runtime/gc/space/dlmalloc_space.h b/runtime/gc/space/dlmalloc_space.h
index 63b1c21..1cfee7a 100644
--- a/runtime/gc/space/dlmalloc_space.h
+++ b/runtime/gc/space/dlmalloc_space.h
@@ -33,7 +33,6 @@
// An alloc space is a space where objects may be allocated and garbage collected.
class DlMallocSpace : public MallocSpace {
public:
-
// Create a DlMallocSpace with the requested sizes. The requested
// base address is not guaranteed to be granted, if it is required,
// the caller should call Begin on the returned space to confirm the
diff --git a/runtime/gc/space/malloc_space.h b/runtime/gc/space/malloc_space.h
index bd21a4d..189f01c 100644
--- a/runtime/gc/space/malloc_space.h
+++ b/runtime/gc/space/malloc_space.h
@@ -181,6 +181,7 @@
friend class collector::MarkSweep;
+ private:
DISALLOW_COPY_AND_ASSIGN(MallocSpace);
};
@@ -188,4 +189,4 @@
} // namespace gc
} // namespace art
-#endif // ART_RUNTIME_GC_SPACE_DLMALLOC_SPACE_H_
+#endif // ART_RUNTIME_GC_SPACE_MALLOC_SPACE_H_