Commit 36581431 authored by Kevin Modzelewski's avatar Kevin Modzelewski

Remove ObjLookupCache.objptr

It was unused
parent ba389a2e
...@@ -693,7 +693,7 @@ GCAllocation* LargeArena::allocationFrom(void* ptr) { ...@@ -693,7 +693,7 @@ GCAllocation* LargeArena::allocationFrom(void* ptr) {
void LargeArena::prepareForCollection() { void LargeArena::prepareForCollection() {
for (LargeObj* lo = head; lo; lo = lo->next) { for (LargeObj* lo = head; lo; lo = lo->next) {
lookup.push_back(ObjLookupCache(lo, &lo->data[0], lo->size)); lookup.push_back(ObjLookupCache(&lo->data[0], lo->size));
} }
std::sort(lookup.begin(), lookup.end(), std::sort(lookup.begin(), lookup.end(),
[](const ObjLookupCache& lo1, const ObjLookupCache& lo2) { return lo1.data < lo2.data; }); [](const ObjLookupCache& lo1, const ObjLookupCache& lo2) { return lo1.data < lo2.data; });
...@@ -904,7 +904,7 @@ GCAllocation* HugeArena::allocationFrom(void* ptr) { ...@@ -904,7 +904,7 @@ GCAllocation* HugeArena::allocationFrom(void* ptr) {
void HugeArena::prepareForCollection() { void HugeArena::prepareForCollection() {
for (HugeObj* lo = head; lo; lo = lo->next) { for (HugeObj* lo = head; lo; lo = lo->next) {
lookup.push_back(ObjLookupCache(lo, &lo->data[0], lo->size)); lookup.push_back(ObjLookupCache(&lo->data[0], lo->size));
} }
std::sort(lookup.begin(), lookup.end(), std::sort(lookup.begin(), lookup.end(),
[](const ObjLookupCache& lo1, const ObjLookupCache& lo2) { return lo1.data < lo2.data; }); [](const ObjLookupCache& lo1, const ObjLookupCache& lo2) { return lo1.data < lo2.data; });
......
...@@ -365,11 +365,10 @@ private: ...@@ -365,11 +365,10 @@ private:
}; };
struct ObjLookupCache { struct ObjLookupCache {
void* objptr;
void* data; void* data;
size_t size; size_t size;
ObjLookupCache(void* objptr, void* data, size_t size) : objptr(objptr), data(data), size(size) {} ObjLookupCache(void* data, size_t size) : data(data), size(size) {}
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment