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


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