6823565: Excessive use of HandleList class in de-serialization code causes OutOfMemory
Reviewed-by: chegar, shade
This commit is contained in:
parent
9cbe14b4df
commit
10cd607753
@ -3383,10 +3383,11 @@ public class ObjectInputStream
|
||||
* Registers a dependency (in exception status) of one handle on
|
||||
* another. The dependent handle must be "open" (i.e., assigned, but
|
||||
* not finished yet). No action is taken if either dependent or target
|
||||
* handle is NULL_HANDLE.
|
||||
* handle is NULL_HANDLE. Additionally, no action is taken if the
|
||||
* dependent and target are the same.
|
||||
*/
|
||||
void markDependency(int dependent, int target) {
|
||||
if (dependent == NULL_HANDLE || target == NULL_HANDLE) {
|
||||
if (dependent == target || dependent == NULL_HANDLE || target == NULL_HANDLE) {
|
||||
return;
|
||||
}
|
||||
switch (status[dependent]) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user