Skip to content

Commit

Permalink
HdrHeap: Remove pointless code and misleading comment.
Browse files Browse the repository at this point in the history
By design for serialization, HdrHeap has no virtual methods and therefore no virtual function pointer.
  • Loading branch information
SolidWallOfCode authored and bryancall committed Feb 12, 2019
1 parent 059e92a commit 7680a52
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions proxy/hdrs/HdrHeap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
#define MAX_LOST_STR_SPACE 1024

Allocator hdrHeapAllocator("hdrHeap", HDR_HEAP_DEFAULT_SIZE);
static HdrHeap proto_heap;

Allocator strHeapAllocator("hdrStrHeap", HDR_STR_HEAP_DEFAULT_SIZE);

Expand Down Expand Up @@ -122,11 +121,6 @@ new_HdrHeap(int size)
h = (HdrHeap *)ats_malloc(size);
}

// Debug("hdrs", "Allocated header heap in size %d", size);

// Patch virtual function table ptr
*((void **)h) = *((void **)&proto_heap);

h->m_size = size;
h->init();

Expand Down

0 comments on commit 7680a52

Please sign in to comment.