ruby: get rid of PrioHeap and use STL
Review Request #24 - Created June 2, 2010 and submitted
Information | |
---|---|
Nathan Binkert | |
gem5 | |
Reviewers | |
Ruby | |
ruby: get rid of PrioHeap and use STL One big difference is that PrioHeap puts the smallest element at the top of the heap, whereas stl puts the largest element on top, so I changed all comparisons so they did the right thing. Some usage of PrioHeap was simply changed to a std::vector, using sort at the right time, other usage had me just use the various heap functions in the stl.
All regressions pass
Looks good.