Removed GOMAXPROCS-related workarounds.

These are no longer needed as of the work in #4.
geesefs-0-30-9
Aaron Jacobs 2015-03-24 12:53:12 +11:00
parent 02eb1c8e32
commit a032446479
1 changed files with 0 additions and 26 deletions

View File

@ -546,19 +546,6 @@ func (t *NoErrorsTest) Mmap_MunmapBeforeClose() {
var n int
var err error
// If we run this test with GOMAXPROCS=1 (the default), the program will
// deadlock for the reason described here:
//
// https://groups.google.com/d/msg/golang-nuts/11rdExWP6ac/TzwT6HBOb3wJ
//
// In summary, the goroutine reading from the mmap'd file is camping on a
// scheduler slot while it blocks on a page fault, and the goroutine handling
// fuse requests is waiting for the scheduler slot.
//
// So run with GOMAXPROCS=2.
old := runtime.GOMAXPROCS(2)
defer runtime.GOMAXPROCS(old)
// Open the file.
t.f1, err = os.OpenFile(path.Join(t.Dir, "foo"), os.O_RDWR, 0)
AssertEq(nil, err)
@ -606,19 +593,6 @@ func (t *NoErrorsTest) Mmap_CloseBeforeMunmap() {
var n int
var err error
// If we run this test with GOMAXPROCS=1 (the default), the program will
// deadlock for the reason described here:
//
// https://groups.google.com/d/msg/golang-nuts/11rdExWP6ac/TzwT6HBOb3wJ
//
// In summary, the goroutine reading from the mmap'd file is camping on a
// scheduler slot while it blocks on a page fault, and the goroutine handling
// fuse requests is waiting for the scheduler slot.
//
// So run with GOMAXPROCS=2.
old := runtime.GOMAXPROCS(2)
defer runtime.GOMAXPROCS(old)
// Open the file.
t.f1, err = os.OpenFile(path.Join(t.Dir, "foo"), os.O_RDWR, 0)
AssertEq(nil, err)