PATCH: Make Makefile.am work in parallel
Mark Mitchell
mark@codesourcery.com
Tue May 7 11:22:00 GMT 2002
--On Tuesday, May 07, 2002 10:06:04 AM -0600 Tom Tromey <tromey@redhat.com>
wrote:
> Mark> So, we could do, roughly speaking:
> Mark> gcj -C -d tmp foo.java
> Mark> mv tmp/foo.class foo.class
>
> Oh, I was thinking we would implement this guarantee in the compiler
> itself, making it SMP-proof.
I think it's SMP-proof anyhow, but it's so easy to fix in the compiler
that I'm going to try that. That will help all GCJ users without
having to do anything special in their Makefile.
I've changed write_classfile to create "foo.class.tmp" and then call
"rename" to change it to "foo.class" after the file has been written.
Note that "rename" is guaranteed to be atomic.
So, if I do this (trivial patchlet to jcf-write.c) plus Makefile.am
changed posted yesterday, will that work for y'all?
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com
More information about the Java-patches
mailing list