This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: PATCH: Make Makefile.am work in parallel
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Anthony Green <green at redhat dot com>
- Cc: "java-patches at gcc dot gnu dot org" <java-patches at gcc dot gnu dot org>
- Date: Mon, 06 May 2002 20:24:10 -0700
- Subject: Re: PATCH: Make Makefile.am work in parallel
--On Monday, May 06, 2002 08:05:57 PM -0700 Anthony Green
<green@redhat.com> wrote:
> On Mon, 2002-05-06 at 17:17, Mark Mitchell wrote:
>> Assuming the tests go OK, does anyone object to this patch?
>
> I think this change is unreliable because there's a reasonable chance
> that the compiler may read a partially written .class file and barf.
Hmm, I see.
> I don't know what a good solution is. Perhaps if there were some way to
> tell the compiler to only read .java files -- but that would slow things
> down a fair bit.
Or tell the compiler to put the .class files right next to where they want
to go and then run "mv" right when you were done. That would be atomic;
either the file is there or it ain't. Can we control where the .class
files goes in that way?
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com