< prev index next >

src/java.base/share/classes/java/io/ObjectInputStream.java

Print this page
rev 12962 : 6823565: Excessive use of HandleList class in de-serialization code causes OutOfMemory
Reviewed-by: TBD

*** 3384,3394 **** * 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. */ void markDependency(int dependent, int target) { ! if (dependent == NULL_HANDLE || target == NULL_HANDLE) { return; } switch (status[dependent]) { case STATUS_UNKNOWN: --- 3384,3394 ---- * 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. */ void markDependency(int dependent, int target) { ! if (dependent == target || dependent == NULL_HANDLE || target == NULL_HANDLE) { return; } switch (status[dependent]) { case STATUS_UNKNOWN:
< prev index next >