Name: krT82822 Date: 04/14/99
Please multithread javac to give better performance when compiling multiple
classes at once on multiprocessor machines, eg the stub classes
output by the idl compiler.
(Review ID: 56948)
======================================================================
Name: skT88420 Date: 12/07/99
java version "1.2.2"
HotSpot VM (1.0.1, mixed mode, build f)
(See also bug id 4229449: please multi-thread javac).
Since interfacing make with javac is difficult for various reasons, and given
that javac already has to compute much of the dependency information that make
would need, may I suggest the following:
A new option to javac, say -XbuildOnlyOutOfDate, which, when javac is given one
or more .java source files, rebuilds *only* those that it determines to be out
of date.
Thus a typical makefile could look soemthing like this:
SRCS=A.java B.java C.java
out.jar: $(SRCS)
javac -XbuildOnlyOutOfDate $(SRCS)
jar cvf $@ $(SRCS:%.java=%.class)
IE, make delegates all the dependency analysis and selective rebuild to javac
for the Java sources.
If javac were also multithreaded to take advantage of multiple processors and/or
to overcome I/O latency, this could beat make or a normal javac solution hands
down. A great leap forward for productivity.
(Review ID: 98733)
======================================================================
- relates to
-
JDK-6713663 javac should better utilize multi-core CPUs
-
- Closed
-