Closed Bug 11585 Opened 25 years ago Closed 25 years ago

nsBuffer.cpp: assertion sizeof(PRCList) <= SEGMENT_OVERHEAD fails for 64-bit ptrs

Categories

(Core :: XPCOM, defect, P3)

DEC
Linux
defect

Tracking

()

RESOLVED WONTFIX

People

(Reporter: niles, Assigned: warrensomebody)

Details

Since PRCList is two pointers on a 32-bit machine sizeof(PRCList) == 8
while on a 64-bit machine (like Alpha) sizeof(PRCList) == 16.  The
problem is that SEGMENT_OVERHEAD is hard coded to 8 in nsIBuffer.h.
This brings up two questions:
(1) Will the code even work if SEGMENT_OVERHEAD is incresed to 16?
(2) Can it be set to some autoconf variable in place of a hard const.?
Assignee: dp → warren
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → WONTFIX
Good observation. Maybe this can be fixed by defining the constant as =
sizeof(void*) (although I don't know if you can use that expression in a
constant declaration). This issue will be moot soon anyway, since nsIBuffer is
going away soon (m10).
You need to log in before you can comment on or make changes to this bug.