@@ -245,7 +245,7 @@ dsm_impl_posix(dsm_op op, dsm_handle handle, Size request_size,
245
245
}
246
246
247
247
/*
248
- * Create new segment or open an existing one for attach or resize .
248
+ * Create new segment or open an existing one for attach.
249
249
*
250
250
* Even though we're not going through fd.c, we should be safe against
251
251
* running out of file descriptors, because of NUM_RESERVED_FDS. We're
@@ -410,10 +410,6 @@ dsm_impl_sysv(dsm_op op, dsm_handle handle, Size request_size,
410
410
char name [64 ];
411
411
int * ident_cache ;
412
412
413
- /* Since resize isn't supported, reattach is a no-op. */
414
- if (op == DSM_OP_ATTACH && * mapped_address != NULL )
415
- return true;
416
-
417
413
/*
418
414
* POSIX shared memory and mmap-based shared memory identify segments with
419
415
* names. To avoid needless error message variation, we use the handle as
@@ -600,10 +596,6 @@ dsm_impl_windows(dsm_op op, dsm_handle handle, Size request_size,
600
596
char name [64 ];
601
597
MEMORY_BASIC_INFORMATION info ;
602
598
603
- /* Since resize isn't supported, reattach is a no-op. */
604
- if (op == DSM_OP_ATTACH && * mapped_address != NULL )
605
- return true;
606
-
607
599
/*
608
600
* Storing the shared memory segment in the Global\ namespace, can allow
609
601
* any process running in any session to access that file mapping object
@@ -814,7 +806,7 @@ dsm_impl_mmap(dsm_op op, dsm_handle handle, Size request_size,
814
806
return true;
815
807
}
816
808
817
- /* Create new segment or open an existing one for attach or resize . */
809
+ /* Create new segment or open an existing one for attach. */
818
810
flags = O_RDWR | (op == DSM_OP_CREATE ? O_CREAT | O_EXCL : 0 );
819
811
if ((fd = OpenTransientFile (name , flags )) == -1 )
820
812
{
0 commit comments