This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: Make Makefile.am work in parallel




--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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]