Skip to content

Commit

Permalink
[FIXED JENKINS-10689]
Browse files Browse the repository at this point in the history
integrating newer version of HtmlUnit to fix
memory inefficiency problem.
(cherry picked from commit 83f204f)
  • Loading branch information
kohsuke committed Oct 21, 2011
1 parent 48576a9 commit 51ba1be
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
4 changes: 3 additions & 1 deletion changelog.html
Expand Up @@ -55,7 +55,9 @@
<!-- Record your changes in the trunk here. -->
<div id="trunk" style="display:none"><!--=TRUNK-BEGIN=-->
<ul class=image>
<li class=>
<li class=bug>
Fixed the OutOfMemoryError in trying to download/install JDK
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-10689">issue 10689</a>)
</ul>
</div><!--=TRUNK-END=-->

Expand Down
2 changes: 1 addition & 1 deletion core/pom.xml
Expand Up @@ -152,7 +152,7 @@ THE SOFTWARE.
<dependency>
<groupId>org.jenkins-ci</groupId>
<artifactId>htmlunit</artifactId>
<version>2.6-jenkins-4</version>
<version>2.6-jenkins-5</version>
<exclusions>
<exclusion>
<groupId>xml-apis</groupId>
Expand Down
3 changes: 0 additions & 3 deletions core/src/main/java/hudson/tools/JDKInstaller.java
Expand Up @@ -414,9 +414,6 @@ public URL locate(TaskListener log, Platform platform, CPU cpu) throws IOExcepti
throw new IOException("Unable to find the login form in "+html.asXml());
}

// TODO: there's awful inefficiency in htmlunit where it loads the whole binary into one big byte array.
// needs to modify it to use temporary file or something

// download to a temporary file and rename it in to handle concurrency and failure correctly,
File tmp = new File(cache.getPath()+".tmp");
tmp.getParentFile().mkdirs();
Expand Down
2 changes: 1 addition & 1 deletion test/pom.xml
Expand Up @@ -96,7 +96,7 @@ THE SOFTWARE.
<dependency>
<groupId>org.jenkins-ci</groupId>
<artifactId>htmlunit</artifactId>
<version>2.6-jenkins-4</version>
<version>2.6-jenkins-5</version>
<exclusions>
<exclusion>
<!-- hides JDK DOM classes in Eclipse -->
Expand Down

0 comments on commit 51ba1be

Please sign in to comment.