diff options
author | Brian Carlstrom <bdc@google.com> | 2013-07-26 10:54:15 -0700 |
---|---|---|
committer | Brian Carlstrom <bdc@google.com> | 2013-07-26 11:55:10 -0700 |
commit | 7934ac288acfb2552bb0b06ec1f61e5820d924a4 (patch) | |
tree | 43f3acd8af7fd34d4ae7b64f6e06bb8429d74bb8 /runtime/hprof | |
parent | fb331d7ca004f39608fcfdae49d38df90c702ea9 (diff) | |
download | art-7934ac288acfb2552bb0b06ec1f61e5820d924a4.zip art-7934ac288acfb2552bb0b06ec1f61e5820d924a4.tar.gz art-7934ac288acfb2552bb0b06ec1f61e5820d924a4.tar.bz2 |
Fix cpplint whitespace/comments issues
Change-Id: Iae286862c85fb8fd8901eae1204cd6d271d69496
Diffstat (limited to 'runtime/hprof')
-rw-r--r-- | runtime/hprof/hprof.cc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/runtime/hprof/hprof.cc b/runtime/hprof/hprof.cc index 3c8099a..d3bb2e8 100644 --- a/runtime/hprof/hprof.cc +++ b/runtime/hprof/hprof.cc @@ -641,7 +641,7 @@ class Hprof { // U4: low word of the 64-bit time. U4_TO_BUF_BE(buf, 0, (uint32_t)(nowMs & 0xffffffffULL)); - fwrite(buf, 1, sizeof(uint32_t), header_fp_); //xxx fix the time + fwrite(buf, 1, sizeof(uint32_t), header_fp_); // xxx fix the time } void WriteStackTraces() { @@ -665,7 +665,7 @@ class Hprof { uint32_t gc_thread_serial_number_; uint8_t gc_scan_state_; - HprofHeapId current_heap_; // Which heap we're currently dumping. + HprofHeapId current_heap_; // Which heap we're currently dumping. size_t objects_in_segment_; FILE* header_fp_; @@ -805,7 +805,7 @@ int Hprof::MarkRootObject(const mirror::Object* obj, jobject jniObj) { rec->AddU1(heapTag); rec->AddId((HprofObjectId)obj); rec->AddU4(gc_thread_serial_number_); - rec->AddU4((uint32_t)-1); //xxx + rec->AddU4((uint32_t)-1); // xxx break; case HPROF_CLASS_DUMP: @@ -834,7 +834,7 @@ static int StackTraceSerialNumber(const mirror::Object* /*obj*/) { int Hprof::DumpHeapObject(mirror::Object* obj) { HprofRecord* rec = ¤t_record_; - HprofHeapId desiredHeap = false ? HPROF_HEAP_ZYGOTE : HPROF_HEAP_APP; // TODO: zygote objects? + HprofHeapId desiredHeap = false ? HPROF_HEAP_ZYGOTE : HPROF_HEAP_APP; // TODO: zygote objects? if (objects_in_segment_ >= OBJECTS_PER_SEGMENT || rec->Size() >= BYTES_PER_SEGMENT) { StartNewHeapDumpSegment(); @@ -876,7 +876,7 @@ int Hprof::DumpHeapObject(mirror::Object* obj) { // obj is a ClassObject. size_t sFieldCount = thisClass->NumStaticFields(); if (sFieldCount != 0) { - int byteLength = sFieldCount*sizeof(JValue); // TODO bogus; fields are packed + int byteLength = sFieldCount*sizeof(JValue); // TODO bogus; fields are packed // Create a byte array to reflect the allocation of the // StaticField array at the end of this class. rec->AddU1(HPROF_PRIMITIVE_ARRAY_DUMP); @@ -901,14 +901,14 @@ int Hprof::DumpHeapObject(mirror::Object* obj) { if (thisClass->IsClassClass()) { // ClassObjects have their static fields appended, so aren't all the same size. // But they're at least this size. - rec->AddU4(sizeof(mirror::Class)); // instance size + rec->AddU4(sizeof(mirror::Class)); // instance size } else if (thisClass->IsArrayClass() || thisClass->IsPrimitive()) { rec->AddU4(0); } else { - rec->AddU4(thisClass->GetObjectSize()); // instance size + rec->AddU4(thisClass->GetObjectSize()); // instance size } - rec->AddU2(0); // empty const pool + rec->AddU2(0); // empty const pool FieldHelper fh; @@ -1041,7 +1041,7 @@ int Hprof::DumpHeapObject(mirror::Object* obj) { void Hprof::VisitRoot(const mirror::Object* obj) { uint32_t threadId = 0; // TODO - /*RootType*/ size_t type = 0; // TODO + /*RootType*/ size_t type = 0; // TODO static const HprofHeapTag xlate[] = { HPROF_ROOT_UNKNOWN, |