JDK-8134608 : (str) JavaLangAccess accessors for new String shapes
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.lang
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2015-08-27
  • Updated: 2019-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.
Other
tbdUnresolved
Related Reports
Relates :  
Description
Some related work, notably Indify String Concat (JDK-8085796) needs the access to raw String shape. JavaLangAccess is normally used in these cases, but it only has the char[] version now, which invokes the private constructor that shares "chars" array:

      public String newStringUnsafe(char[] chars) {
           return new String(chars, true);
      }

That String(char[],boolean) constructor is copying now, defeating the purpose of JavaLangAccess::newStringUnsafe.  Therefore, we need to drill a few new holes in JavaLangAccess to aid these cases, admitting the new String shape.
Comments
Updated webrev: http://cr.openjdk.java.net/~shade/8134608/webrev.01/
27-08-2015

Webrev: http://cr.openjdk.java.net/~shade/8134608/webrev.00/
27-08-2015