Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Changeset 3462

Show
Ignore:
Timestamp:
04/25/08 14:13:20 (7 months ago)
Author:
sean
Message:

Disabled "GC.NO_SCAN" detection for AA nodes. Since the nodes contain pointers to other nodes, they must always be scanned. This closes #1037

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/compiler/dmd/aaA.d

    r3460 r3462  
    287287    //printf("create new one\n"); 
    288288    size_t size = aaA.sizeof + keysize + valuesize; 
    289     uint   bits = !(aa.a.keyti.flags() & 1) && 
    290                   valuesize < (void*).sizeof ? BlkAttr.NO_SCAN : 0; 
    291     e = cast(aaA *) gc_calloc(size, bits); 
     289    e = cast(aaA *) gc_calloc(size); 
    292290    memcpy(e + 1, pkey, keysize); 
    293291    e.hash = key_hash; 
  • trunk/lib/compiler/gdc/aaA.d

    r3460 r3462  
    291291    //printf("create new one\n"); 
    292292    size_t size = aaA.sizeof + keysize + valuesize; 
    293     uint   bits = !(aa.a.keyti.flags() & 1) && 
    294                   valuesize < (void*).sizeof ? BlkAttr.NO_SCAN : 0; 
    295     e = cast(aaA *) gc_calloc(size, bits); 
     293    e = cast(aaA *) gc_calloc(size); 
    296294    memcpy(e + 1, pkey, keysize); 
    297295    e.hash = key_hash;