search for: shouldclose

Displaying 14 results from an estimated 14 matches for "shouldclose".

2015 Jan 23
3
[LLVMdev] Behaviour of outs()?
...was just fixing a bug that was caused by `stdout` being closed before the runtime has done `fflush(stdout)` [or however this is implemented in the runtime]. The cause of this seems to be that `outs()` returns a static object created from `raw_fd_stream(STDOUT_FILENO, true)` - the `true` being the `shouldClose` parameter. Surely LLVM is not supposed to close `stdout` as part of its operations? -- Mats
2015 Jan 23
3
[LLVMdev] Behaviour of outs()?
...sed > > before the runtime has done `fflush(stdout)` [or however this is > > implemented in the runtime]. > > > > The cause of this seems to be that `outs()` returns a static object > > created from `raw_fd_stream(STDOUT_FILENO, true)` - the `true` being > > the `shouldClose` parameter. > > > > Surely LLVM is not supposed to close `stdout` as part of its operations? > > Looks like this was added in r111643: > > commit 5d56d9df928c48571980efe8d4205de8ab557b7c > Author: Dan Gohman <gohman at apple.com> > Date: Fri Aug 20 16:44:56 201...
2007 Dec 05
4
os x crash using rpanel and tcltk (PR#10495)
Hello, I've recently discovered a persistent issue with rpanel when running R.app (2.6.1) on Mac OS X 10.4.11. tcltk and rpanel load without any apparent error, and the interactive panels appear to work as expected, however upon closing the panels rpanel has created I get catastrophic errors and R crashes completely. For the most part R manages to crash with dignity and work can be saved, but
2018 Mar 22
4
[pre-RFC] Data races in concurrent ThinLTO processes
...C = sys::fs::createTemporaryFile("Thin", "tmp.o", TempFD, TempFilename); if (EC) { errs() << "Error: " << EC.message() << "\n"; report_fatal_error("ThinLTO: Can't get a temporary file"); } { raw_fd_ostream OS(TempFD, /* ShouldClose */ true); OS << OutputBuffer.getBuffer(); } // Rename to final destination (hopefully race condition won't matter here) EC = sys::fs::rename(TempFilename, EntryPath); Compared to a race-prone direct write of a buffer to a file, this code avoids a data race by first writing a buffer to...
2018 Mar 27
2
[pre-RFC] Data races in concurrent ThinLTO processes
...hin", "tmp.o", TempFD, TempFilename);* > *if (EC) {* > * errs() << "Error: " << EC.message() << "\n";* > * report_fatal_error("ThinLTO: Can't get a temporary file");* > *}* > *{* > * raw_fd_ostream OS(TempFD, /* ShouldClose */ true);* > * OS << OutputBuffer.getBuffer();* > *}* > *// Rename to final destination (hopefully race condition won't matter > here)* > *EC = sys::fs::rename(TempFilename, EntryPath); * > > Compared to a race-prone direct write of a buffer to a file, this code &...
2018 Mar 22
0
[pre-RFC] Data races in concurrent ThinLTO processes
...File("Thin", "tmp.o", TempFD, TempFilename); > if (EC) { > errs() << "Error: " << EC.message() << "\n"; > report_fatal_error("ThinLTO: Can't get a temporary file"); > } > { > raw_fd_ostream OS(TempFD, /* ShouldClose */ true); > OS << OutputBuffer.getBuffer(); > } > // Rename to final destination (hopefully race condition won't matter here) > EC = sys::fs::rename(TempFilename, EntryPath); > > Compared to a race-prone direct write of a buffer to a file, this code avoids a data...
2018 Mar 27
0
[pre-RFC] Data races in concurrent ThinLTO processes
...quot;tmp.o", TempFD, TempFilename); >> if (EC) { >> errs() << "Error: " << EC.message() << "\n"; >> report_fatal_error("ThinLTO: Can't get a temporary file"); >> } >> { >> raw_fd_ostream OS(TempFD, /* ShouldClose */ true); >> OS << OutputBuffer.getBuffer(); >> } >> // Rename to final destination (hopefully race condition won't matter here) >> EC = sys::fs::rename(TempFilename, EntryPath); >> >> Compared to a race-prone direct write of a buffer to a file,...
2018 Mar 27
1
[pre-RFC] Data races in concurrent ThinLTO processes
...C = sys::fs::createTemporaryFile("Thin", "tmp.o", TempFD, TempFilename); if (EC) { errs() << "Error: " << EC.message() << "\n"; report_fatal_error("ThinLTO: Can't get a temporary file"); } { raw_fd_ostream OS(TempFD, /* ShouldClose */ true); OS << OutputBuffer.getBuffer(); } // Rename to final destination (hopefully race condition won't matter here) EC = sys::fs::rename(TempFilename, EntryPath); Compared to a race-prone direct write of a buffer to a file, this code avoids a data race by first writing a buffer to...
2018 Mar 27
4
[pre-RFC] Data races in concurrent ThinLTO processes
...C = sys::fs::createTemporaryFile("Thin", "tmp.o", TempFD, TempFilename); if (EC) { errs() << "Error: " << EC.message() << "\n"; report_fatal_error("ThinLTO: Can't get a temporary file"); } { raw_fd_ostream OS(TempFD, /* ShouldClose */ true); OS << OutputBuffer.getBuffer(); } // Rename to final destination (hopefully race condition won't matter here) EC = sys::fs::rename(TempFilename, EntryPath); Compared to a race-prone direct write of a buffer to a file, this code avoids a data race by first writing a buffer to...
2018 Mar 27
0
[pre-RFC] Data races in concurrent ThinLTO processes
...TempFD, TempFilename);* > > *if (EC) {* > > * errs() << "Error: " << EC.message() << "\n";* > > * report_fatal_error("ThinLTO: Can't get a temporary file");* > > *}* > > *{* > > * raw_fd_ostream OS(TempFD, /* ShouldClose */ true);* > > * OS << OutputBuffer.getBuffer();* > > *}* > > *// Rename to final destination (hopefully race condition won't matter > here)* > > *EC = sys::fs::rename(TempFilename, EntryPath); * > > > > Compared to a race-prone direct write of a...
2018 Mar 27
2
[pre-RFC] Data races in concurrent ThinLTO processes
...C = sys::fs::createTemporaryFile("Thin", "tmp.o", TempFD, TempFilename); if (EC) { errs() << "Error: " << EC.message() << "\n"; report_fatal_error("ThinLTO: Can't get a temporary file"); } { raw_fd_ostream OS(TempFD, /* ShouldClose */ true); OS << OutputBuffer.getBuffer(); } // Rename to final destination (hopefully race condition won't matter here) EC = sys::fs::rename(TempFilename, EntryPath); Compared to a race-prone direct write of a buffer to a file, this code avoids a data race by first writing a buffer to...
2018 Mar 27
0
[pre-RFC] Data races in concurrent ThinLTO processes
...File("Thin", "tmp.o", TempFD, TempFilename); > if (EC) { > errs() << "Error: " << EC.message() << "\n"; > report_fatal_error("ThinLTO: Can't get a temporary file"); > } > { > raw_fd_ostream OS(TempFD, /* ShouldClose */ true); > OS << OutputBuffer.getBuffer(); > } > // Rename to final destination (hopefully race condition won't matter here) > EC = sys::fs::rename(TempFilename, EntryPath); > > Compared to a race-prone direct write of a buffer to a file, this code avoids a data...
2018 Mar 27
0
[pre-RFC] Data races in concurrent ThinLTO processes
...TempFD, TempFilename);* > > *if (EC) {* > > * errs() << "Error: " << EC.message() << "\n";* > > * report_fatal_error("ThinLTO: Can't get a temporary file");* > > *}* > > *{* > > * raw_fd_ostream OS(TempFD, /* ShouldClose */ true);* > > * OS << OutputBuffer.getBuffer();* > > *}* > > *// Rename to final destination (hopefully race condition won't matter > here)* > > *EC = sys::fs::rename(TempFilename, EntryPath); * > > > > Compared to a race-prone direct write of a...
2018 Mar 27
1
[pre-RFC] Data races in concurrent ThinLTO processes
...C = sys::fs::createTemporaryFile("Thin", "tmp.o", TempFD, TempFilename); if (EC) { errs() << "Error: " << EC.message() << "\n"; report_fatal_error("ThinLTO: Can't get a temporary file"); } { raw_fd_ostream OS(TempFD, /* ShouldClose */ true); OS << OutputBuffer.getBuffer(); } // Rename to final destination (hopefully race condition won't matter here) EC = sys::fs::rename(TempFilename, EntryPath); Compared to a race-prone direct write of a buffer to a file, this code avoids a data race by first writing a buffer to...