Recipients davin, dtasev,, sbt, serhiy.storchaka
Date 2017-07-14.11:49:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I see now that the default start method is 'fork' (except on Windows), so calling set_start_method is unnecessary.

Note that you don't have to edit multiprocessing/, you can "monkey-patch" it in the program that needs the anonymous mapping:

    from multiprocessing.heap import Arena

    def anonymous_arena_init(self, size, fd=-1):
        "Create Arena using an anonymous memory mapping."
        self.size = size
        self.fd = fd  # still kept but is not used !
        self.buffer = mmap.mmap(-1, self.size)

    Arena.__init__ = anonymous_arena_init

As for what it will break — any code that uses the 'spawn' or 'forkserver' start methods.
Date User Action Args
2017-07-14 11:49:41gdr@garethrees.orgsetrecipients: +, sbt, serhiy.storchaka, davin, dtasev
2017-07-14 11:49:41gdr@garethrees.orgsetmessageid: <>
2017-07-14 11:49:41gdr@garethrees.orglinkissue30919 messages
2017-07-14 11:49:40gdr@garethrees.orgcreate