[PATCH] D27768: COFF: Open and map input files asynchronously on Windows.

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 14 18:41:15 PST 2016


ruiu added a comment.

I don't know for sure, but I guess that resources associated with a file descriptor are freed when all references to the descriptor is released. If you mmap a file descriptor and close it, that close is at the moment almost no-op (except it decrements a kernel internal counter by one), and the resources associated with it will be released when you munmap, no?


https://reviews.llvm.org/D27768





More information about the llvm-commits mailing list