Details
-
Bug
-
Status: Resolved
-
P4
-
Resolution: Fixed
-
17, 20, 21
-
b03
Description
When CipherOutputStream is used to decrypt data compressed with AEAD cipher like AES/GCM, all data written to the stream is buffered until the stream is closed.
During every write operation, a new buffer large enough to hold the entire decrypted data is allocated. If the writes are frequent, this puts GC under pressure.
This issue was noticed while investigatingJDK-8298249, which reported a similar case with CipherInputStream.
During every write operation, a new buffer large enough to hold the entire decrypted data is allocated. If the writes are frequent, this puts GC under pressure.
This issue was noticed while investigating
Attachments
Issue Links
- relates to
-
JDK-8298249 Excessive memory allocation in CipherInputStream AEAD decryption
-
- Resolved
-