Closed Bug 603323 Opened 10 years ago Closed 9 years ago

angle: TPoolAllocator::totalBytes is never initialized

Categories

(Core :: Graphics, defect, minor)

defect
Not set
minor

Tracking

()

RESOLVED FIXED

People

(Reporter: timeless, Assigned: timeless)

References

(Blocks 1 open bug)

Details

(Keywords: coverity)

Attachments

(1 file)

None of this changes totalBytes:

80 TPoolAllocator::TPoolAllocator(bool g, int growthIncrement, int allocationAlignment) : 
81     global(g),

87 {
92     if (pageSize < 4*1024)
93         pageSize = 4*1024;

99     currentPageOffset = pageSize;

105     size_t minAlign = sizeof(void*);
106     alignment &= ~(minAlign - 1);
107     if (alignment < minAlign)
108         alignment = minAlign;
109     size_t a = 1;
110     while (a < alignment)
111         a <<= 1;
112     alignment = a;
113     alignmentMask = a - 1;

118     headerSkip = minAlign;
119     if (headerSkip < sizeof(tHeader)) {
120         headerSkip = (sizeof(tHeader) + alignmentMask) & ~alignmentMask;

http://mxr.mozilla.org/mozilla-central/search?string=totalBytes&find=angle

/gfx/angle/src/compiler/PoolAlloc.cpp
    * line 250 -- totalBytes += numBytes;

/gfx/angle/src/compiler/PoolAlloc.h
    * line 211 -- size_t totalBytes; // just an interesting statistic
Attached patch patchSplinter Review
Assignee: nobody → timeless
Status: NEW → ASSIGNED
Summary: TPoolAllocator::totalBytes is never initialized → angle: TPoolAllocator::totalBytes is never initialized
Needs to be filed at http://code.google.com/p/angleproject/ -- please file further ANGLE bugs there.
this was integrated
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.