}
 
        /*
-        * Create new segment or open an existing one for attach or resize.
+        * Create new segment or open an existing one for attach.
         *
         * Even though we're not going through fd.c, we should be safe against
         * running out of file descriptors, because of NUM_RESERVED_FDS.  We're
        char            name[64];
        int                *ident_cache;
 
-       /* Since resize isn't supported, reattach is a no-op. */
-       if (op == DSM_OP_ATTACH && *mapped_address != NULL)
-               return true;
-
        /*
         * POSIX shared memory and mmap-based shared memory identify segments with
         * names.  To avoid needless error message variation, we use the handle as
        char            name[64];
        MEMORY_BASIC_INFORMATION info;
 
-       /* Since resize isn't supported, reattach is a no-op. */
-       if (op == DSM_OP_ATTACH && *mapped_address != NULL)
-               return true;
-
        /*
         * Storing the shared memory segment in the Global\ namespace, can allow
         * any process running in any session to access that file mapping object
                return true;
        }
 
-       /* Create new segment or open an existing one for attach or resize. */
+       /* Create new segment or open an existing one for attach. */
        flags = O_RDWR | (op == DSM_OP_CREATE ? O_CREAT | O_EXCL : 0);
        if ((fd = OpenTransientFile(name, flags)) == -1)
        {