Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4911532

Remove useless activity in a null build in j2se/make/java/java

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 6
    • 5.0
    • infrastructure
    • b42
    • generic
    • generic

      The j2se/java/java/Makefile contains some rules that
      are triggered on every `make', even if no source files
      have changed.

      Consider this excerpt from the Makefile

      $(GENSRCDIR)/java/lang:
      $(MKDIR) -p $@

      $(GENSRCDIR)/java/lang/UNIXProcess.java: $(GENSRCDIR)/java/lang
      @# try to remove it just in case there is a clock-skew
      @# problem that would force a second copy...
      -$(RM) $@
      $(CP) $(PLATFORM_SRC)/classes/java/lang/$(@F).$(PLATFORM) $@

      The problem with this is that the rule that updates the target
      also updates the timestamp on the dependency, causing the target
      to be rebuilt every time.

      The null build of a j2se workspace takes far too long. There are
      likely many such cases in the source code.

      ###@###.### 2003-08-22

            ohair Kelly Ohair (Inactive)
            martin Martin Buchholz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: