зеркало из https://github.com/mozilla/pjs.git
Bug 444034 - jprof fails to sort symbols correctly. r=dbaron
This commit is contained in:
Родитель
39c4dac919
Коммит
6e4a7a6d30
|
@ -291,8 +291,8 @@ static int symbolOrder(void const* a, void const* b)
|
||||||
{
|
{
|
||||||
Symbol const* ap = (Symbol const *)a;
|
Symbol const* ap = (Symbol const *)a;
|
||||||
Symbol const* bp = (Symbol const *)b;
|
Symbol const* bp = (Symbol const *)b;
|
||||||
ptrdiff_t diff = ap->address - bp->address;
|
return ap->address == bp->address ? 0 :
|
||||||
return (diff == 0) ? 0 : ((diff > 0) ? 1 : -1);
|
(ap->address > bp->address ? 1 : -1);
|
||||||
}
|
}
|
||||||
|
|
||||||
void leaky::ReadSharedLibrarySymbols()
|
void leaky::ReadSharedLibrarySymbols()
|
||||||
|
|
Загрузка…
Ссылка в новой задаче