JDK-8237217 : Incorrect G1StringDedupEntry type used in StringDedupTable destructor
  • Type: Bug
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 11,13,14,15
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-01-15
  • Updated: 2020-06-03
  • Resolved: 2020-01-15
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 13 JDK 14 JDK 15
11.0.7Fixed 13.0.4Fixed 14.0.2Fixed 15 b06Fixed
Related Reports
Relates :  
Description
See:

StringDedupTable::StringDedupTable(size_t size, jint hash_seed) :
...
  _buckets = NEW_C_HEAP_ARRAY(StringDedupEntry*, _size, mtGC);
...
}

StringDedupTable::~StringDedupTable() {
  FREE_C_HEAP_ARRAY(G1StringDedupEntry*, _buckets);
}

This is a trivial leftover from JDK-8203641. G1StringDedupEntry symbol does not even exist, and the whole thing works because FREE_C_HEAP_ARRAY ignores that parameter. But it should be consistent anyway.
Comments
Fix request (13u): The original change applies cleanly, passes tier1 and tier2 tests.
03-06-2020

Fix Request (14u) This is a minor thing that makes sense to backport to 14u to match both mainline and 11u.
06-03-2020

Fix Request (11u) Backports trivial change with minimal risk, in order to match context with future backports nearby. Patch applies cleanly to 11u, passes Linux x86_64 fastdebug build.
15-01-2020

URL: https://hg.openjdk.java.net/jdk/jdk/rev/53b6aad22933 User: shade Date: 2020-01-15 19:05:07 +0000
15-01-2020