Skip to content

Commit 56b21a7

Browse files
committed
8353787: Increased number of SHA-384-Digest java.util.jar.Attributes$Name instances leading to higher memory footprint
Backport-of: b64cdc28132c889ca8e21dc9534590ba2a778bcd
1 parent f7cb0d6 commit 56b21a7

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, 2022, 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
@@ -726,6 +726,7 @@ private static void addName(Map<String, Name> names, Name name) {
726726
addName(names, new Name("Created-By"));
727727
addName(names, new Name("SHA1-Digest"));
728728
addName(names, new Name("SHA-256-Digest"));
729+
addName(names, new Name("SHA-384-Digest"));
729730
KNOWN_NAMES = Map.copyOf(names);
730731
} else {
731732
// Even if KNOWN_NAMES was read from archive, we still need

0 commit comments

Comments
 (0)