8365887: Outdated comments in String::decode#31661
Conversation
|
👋 Welcome back aprilivy! A progress list of the required criteria for merging this PR into |
|
@aprilivy This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be: You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 3 new commits pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@xuemingshen-oracle) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
|
These comments were initially introduced in 3f0b988. I think at the current state, these leftover comments repeat some redundant information and can just be completely nuked. @xuemingshen-oracle what do you think, since you initially added these comments? |
|
/integrate |
|
@mhaessig Would you mind sponsoring this please? :) |
| // Do not cache the CharsetDecoder created here. It is short-lived, | ||
| // so young-generation GC should handle it well. The ArrayDecoder | ||
| // fast paths below decode directly from arrays where possible. |
There was a problem hiding this comment.
| // Do not cache the CharsetDecoder created here. It is short-lived, | |
| // so young-generation GC should handle it well. The ArrayDecoder | |
| // fast paths below decode directly from arrays where possible. |
This remaining stub IMO is meaningless too.
As noted in https://bugs.openjdk.org/browse/JDK-8365887, the comment in
String::decodestill referred to the old defensive copy / security manager optimization even though that path has been removed.This updates the comment to describe the current shape of the method: a short-lived
CharsetDecoderis created for this decode path, while theArrayDecoderfast paths decode directly from arrays where possible.Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/31661/head:pull/31661$ git checkout pull/31661Update a local copy of the PR:
$ git checkout pull/31661$ git pull https://git.openjdk.org/jdk.git pull/31661/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 31661View PR using the GUI difftool:
$ git pr show -t 31661Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/31661.diff
Using Webrev
Link to Webrev Comment