Skip to content

Commit 09d777a

Browse files
kieran-farrellcoffeys
authored andcommitted
8353787: Increased number of SHA-384-Digest java.util.jar.Attributes$Name instances leading to higher memory footprint
Backport-of: b64cdc28132c889ca8e21dc9534590ba2a778bcd
1 parent 2c314dc commit 09d777a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/java.base/share/classes/java/util/jar/Attributes.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1997, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -727,6 +727,7 @@ private static void addName(Map<String, Name> names, Name name) {
727727
addName(names, new Name("Created-By"));
728728
addName(names, new Name("SHA1-Digest"));
729729
addName(names, new Name("SHA-256-Digest"));
730+
addName(names, new Name("SHA-384-Digest"));
730731
KNOWN_NAMES = Map.copyOf(names);
731732
} else {
732733
// Even if KNOWN_NAMES was read from archive, we still need

0 commit comments

Comments
 (0)