[Bug 931] does upc_alloc allocates memory with affinity to the calling thread

bugzilla-daemon_at_mantis_dot_lbl_dot_gov
Date: Mon Jan 03 2005 - 14:39:01 PST

  • Next message: Venelin Mitov: "Constant indices compile error"
    http://mantis.lbl.gov/bugzilla/show_bug.cgi?id=931
    
    bonachea_at_cs_dot_berkeley_dot_edu changed:
    
               What    |Removed                     |Added
    ----------------------------------------------------------------------------
                     CC|                            |upc-users_at_lbl_dot_gov
                 Status|NEW                         |RESOLVED
             Resolution|                            |INVALID
                Summary|does upc_alloc allocates    |does upc_alloc allocates
                       |memory with affinity to the |memory with affinity to the
                       |calling thread              |calling thread
    
    
    ---- Additional Comments From bonachea_at_cs_dot_berkeley_dot_edu  2005-01-03 14:39 ----
    The program behavior is correct.
    
    The relevant line:
    
       dst->pts = (shared[] Point *)upc_alloc(src->end*sizeof(Point));
    
    accesses the variable src->end, which is never explicitly initialized and
    because in this case it's static data, the value is zero. The program is asking
    to allocate zero bytes, which is equivalent to not allocating anything.
    
    upc_alloc(0) returns NULL as required by the UPC spec, and upc_threadof(NULL)
    also returns zero, as required by the UPC spec.
    
    
    
    
    
    ------- You are receiving this mail because: -------
    You are on the CC list for the bug, or are watching someone who is.
    

  • Next message: Venelin Mitov: "Constant indices compile error"