RFR: 8347167: Implementation in com.sun.net.httpserver.Headers.normalize() can be improved
Volkan Yazici
vyazici at openjdk.org
Wed Nov 19 11:50:36 UTC 2025
On Mon, 17 Nov 2025 16:02:41 GMT, Josiah Noel <duke at openjdk.org> wrote:
>> Following the direction outlined in the net-dev discussion, I've updated the `com.sun.net.httpserver.Headers.normalize()` method to no longer allocate a superfluous char array when the header is already normalized.
>
> Most excellent, thank you for your hard work and attention
@SentryMan, I've (hopefully) fixed the issue, added more tests, and a new benchmark case. Would you mind reviewing and applying [this patch](https://github.com/user-attachments/files/23626853/headerNormalize-v2.patch), please?
I've updated the JBS issue title as @eirbjo suggested. @SentryMan, could you also rename the PR title to match it, please?
-------------
PR Comment: https://git.openjdk.org/jdk/pull/27276#issuecomment-3552257748
More information about the net-dev
mailing list