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

Avoid unnecessary memory allocation in HttpURLConnection

XMLWordPrintable

      A DESCRIPTION OF THE PROBLEM :
      check the context-length (may be null in chunked encoding) before invoke Long.parseLong to avoid a large amount of gabage in a bunch of http call.

      jdk/src/share/classes/sun/net/www/protocol/http/HttpURLConnection.java

      please see the patch at
      https://github.com/wuhongzhi/openjdk-jdk8u/commit/d5cf8b756798b37873de764626d3f93f1e54c760




            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: