Mercurial > cgi-bin > hgwebdir.cgi > VMS > VMS_Implementations > VMS_impls > VMS__MC_shared_impl
diff VMS.c @ 175:de5e7c522f1f
aligned memory allocation
| author | Merten Sach <msach@mailbox.tu-berlin.de> |
|---|---|
| date | Tue, 20 Dec 2011 19:17:11 +0100 |
| parents | c3f458403cd6 |
| children | 0320b49ca013 |
line diff
1.1 --- a/VMS.c Tue Dec 20 16:50:21 2011 +0100 1.2 +++ b/VMS.c Tue Dec 20 19:17:11 2011 +0100 1.3 @@ -193,7 +193,7 @@ 1.4 for( i = 0; i < NUM_SCHED_SLOTS; i++ ) 1.5 { 1.6 //schedSlots[i] = VMS__malloc( sizeof(SchedSlot) ); 1.7 - posix_memalign(&schedSlots[i], CACHELINE_SIZE, sizeof(SchedSlot) ); 1.8 + posix_memalign(&schedSlots[i], CACHELINE_SIZE, CACHELINE_SIZE ); 1.9 1.10 //Set state to mean "handling requests done, slot needs filling" 1.11 schedSlots[i]->workIsDone = FALSE;
