Closed
      
        Bug 760812
      
      
        Opened 13 years ago
          Closed 13 years ago
      
        
    
  
correct bitflags for objects allocated by size in nsPresArena  
    Categories
(Core :: Layout, defect)
        Core
          
        
        
      
        
    
        Layout
          
        
        
      
        
    Tracking
()
        RESOLVED
        FIXED
        
    
  
        
            mozilla16
        
    
  
People
(Reporter: froydnj, Assigned: froydnj)
References
Details
Attachments
(1 file)
| 917 bytes,
          patch         | roc
:
              
              review+ | Details | Diff | Splinter Review | 
nsPresArena.h says:
  enum ObjectID {
    nsLineBox_id = nsQueryFrame::NON_FRAME_MARKER,
    // The PresArena implementation uses this bit to distinguish objects
    // allocated by size from objects allocated by type ID (that is, frames
    // using AllocateByFrameID and other objects using AllocateByObjectID).
    // It should not collide with any Object ID (above) or frame ID (in
    // nsQueryFrame.h).  It is not 0x80000000 to avoid the question of
    // whether enumeration constants are signed.
    NON_OBJECT_MARKER = 0x40000000
  };
but the actual implementation of AllocateBySize wrongly uses nsQueryFrame::NON_FRAME_MARKER instead of NON_OBJECT_MARKER.  (nsPresArena.cpp doesn't even use NON_OBJECT_MARKER currently.)  If we were to add more ObjectIDs for better arena allocation statistics, we'd eventually run into problems, though it would take a while.  Let's fix this.
        Attachment #629476 -
        Flags: review?(roc)
        Attachment #629476 -
        Flags: review?(roc) → review+
|   | Assignee | |
| Comment 1•13 years ago
           | ||
Assignee: nobody → nfroyd
Status: NEW → ASSIGNED
|   | ||
| Comment 2•13 years ago
           | ||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla16
| Updated•7 years ago
           | 
Product: Core → Core Graveyard
| Updated•7 years ago
           | 
Component: Layout: Misc Code → Layout
Product: Core Graveyard → Core
          You need to log in
          before you can comment on or make changes to this bug.
        
Description
•