Re: Qeustion about memory barrier in sys_getppid() system call .

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi...

isn't the barrier also for the compiler? IIRC, gcc reorder instructions in an attempt to optimize code. A memory-barrier will effectively stop the compiler for mixing code from before the barrier into the code afterwards.
Ah, yes I forgot that. thanks for reminding.

regards,

Mulyadi


--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux