Skip to content

Commit

Permalink
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions machine/vm.cpp
Original file line number Diff line number Diff line change
@@ -300,13 +300,13 @@ namespace rubinius {
profile_.set(profile);
}

::qsort(reinterpret_cast<void*>(profile->field), profile->num_fields(),
sizeof(intptr_t), profile_compare);

for(native_int i = 0; i < profile->num_fields(); i++) {
if(code == profile->at(i)) return;
}

::qsort(reinterpret_cast<void*>(profile->field), profile->num_fields(),
sizeof(intptr_t), profile_compare);

CompiledCode* pcode = try_as<CompiledCode>(profile->at(0));
if(!pcode || (pcode &&
code->machine_code()->sample_count > pcode->machine_code()->sample_count))

0 comments on commit 0d8f0ca

Please sign in to comment.