search for: writea

Displaying 7 results from an estimated 7 matches for "writea".

Did you mean: write
2015 Jan 26
3
[LLVMdev] LLVM introduces racy read - Unsafe transformation?
...s already racy due to shared flag variable. Sorry for the wrong example. Please ignore it. I have modified the program as follows. The only shared variable is 'a' and the following is a non-racy program. int a; int readA(bool flag) { int r=0; if(flag) { r = a; } return r; } void writeA(){ a = 42; } int main() { bool flag = false; thread first (writeA); thread second (readA, flag); first.join(); second.join(); return 0; } The generated LLVM IR ; Function Attrs: nounwind readonly uwtable define i32 @_Z5readAb(i1 zeroext %flag) #3 { entry: %0 = load i32* @a, align 4...
2015 Jan 26
2
[LLVMdev] LLVM introduces racy read - Unsafe transformation?
...<filename>.ll -o <filename>.opt.bc -S Target ------- define i32 @_Z5readAv() #3 { entry: %0 = load i8* @flag, align 1 %1 = and i8 %0, 1 %tobool = icmp eq i8 %1, 0 %2 = load i32* @a, align 4 %. = select i1 %tobool, i32 0, i32 %2 ret i32 %. } Consider the following function writeA() runs in parallel with readA(). void writeA(){ a = 42; } The source program has no data race if flag=false. But the target program is racy due to the introduced load(a) operation. This is a benign race since the load(a) is used only when flag=true. However, according to the C11/C++11 consist...
2008 Jun 08
4
Location of ancillary files
Let''s say, for example, that I want to create an order form and that I want to assign an order number to each submitted order form for tracking purposes. So, I create a little file to store the latest number. Then when a new order comes in, I grab that number, increment it by one, assign the incremented number to the order, and finally replace the number that''s in the file with
2013 Dec 13
17
[Bug 10322] New: Slow Performance over Network rsync
https://bugzilla.samba.org/show_bug.cgi?id=10322 Summary: Slow Performance over Network rsync Product: rsync Version: 3.1.0 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P5 Component: core AssignedTo: wayned at samba.org ReportedBy: Joerg.Grube at Gmx.De
2014 Jan 28
3
[LLVMdev] New machine model questions
...context but the relevant extracts are below. def P5600IssueALU : ProcResource<1>; def P5600IssueAL2 : ProcResource<1>; def P5600ALQ : ProcResGroup<[P5600IssueALU]> { let BufferSize = 16; } def P5600AGQ : ProcResGroup<[P5600IssueAL2, ...]> { let BufferSize = 16; } def P5600WriteALU : SchedWriteRes<[P5600IssueALU]>; def P5600WriteAL2 : SchedWriteRes<[P5600IssueAL2]>; def P5600WriteEitherALU : SchedWriteVariant< [SchedVar<SchedPredicate<[{1}]>, [P5600WriteALU]>, // FIXME: Predicate SchedVar<SchedPredicate<[{0}]>, [P5600WriteAL2]> /...
2011 Jan 06
25
Call for testing: OpenSSH-5.7
...on clean exit); * ssh(1): install a SIGCHLD handler to reap expiried child process Portable OpenSSH Bugfixes: * Use mandoc as preferred manpage formatter if it is present, followed by nroff and groff respectively. * sshd(8): Relax permission requirement on btmp logs to allow group read/writea * bz#1840: fix warning when configuring --with-ssl-engine * sshd(8): Use correct uid_t/pid_t types instead of int. bz#1817 * sshd(8): bz#1824: Add Solaris Project support. * sshd(8): Check is_selinux_enabled for exact return code since it can apparently return -1 under some conditions....
2010 Oct 19
33
Render partial generate unwanted spaces
Hello, I have a problem with the render :partial method in all my rails webapplications. I noticed that using render :partial will generate spaces (mainly top spaces) on the elements inserted. As all my websites are seperated by module (basicaly header, content, menu, footer) it''s quite a problem as I have to set negative margin- top to various parts for the site to display as expected