Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact
Show
Ignore:
Timestamp:
03/06/07 16:35:32 (5 years ago)
Author:
sean
Message:

Merged in final GDC 0.23 changes. These changes have also been applied to the DMD runtime where applicable. As most of these changes were replacing instances of int/uint with ptrdiff_t/size_t, there should be no noticeable difference in DMD behavior from these changes.

Please note that some changes were necessary to the GC as well, and I am trusting that Dave Friedman got things right. Again, most of these were changes from uint to size_t, but things here seem a bit less clear-cut than most of the changes to the GDC runtime itself.

Finally, it is worth being aware that of the GC code, only gcx.d is really pretty much the same between Tango and Phobos/GPhobos. The remaining files are split among the GC directory (gc/basic), and the files lifetime.d and memory.d in the compiler runtime code. The Tango design is far cleaner, but the structural differences complicate merging changes in this area. I've triple-checked all changes for this merge, but if there are any functional problems, I expect them to concern these GC-related files.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/gc/basic/gcstats.d

    r830 r1856  
    3131struct GCStats 
    3232{ 
    33     uint poolsize;      /// total size of pool 
    34     uint usedsize;      /// bytes allocated 
    35     uint freeblocks;    /// number of blocks marked FREE 
    36     uint freelistsize;  /// total of memory on free lists 
    37     uint pageblocks;    /// number of blocks marked PAGE 
     33    size_t poolsize;        // total size of pool 
     34    size_t usedsize;        // bytes allocated 
     35    size_t freeblocks;      // number of blocks marked FREE 
     36    size_t freelistsize;    // total of memory on free lists 
     37    size_t pageblocks;      // number of blocks marked PAGE 
    3838}