jdk/src/java.rmi/share/classes/sun/rmi/transport/DGCImpl_Stub.java
author rriggs
Thu, 16 Mar 2017 16:16:31 -0400
changeset 45984 75fef64e21fa
permissions -rw-r--r--
8163958: Improved garbage collection Reviewed-by: smarks, chegar, skoivu, rhalade
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
45984
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
     1
/*
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
     2
 * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
     4
 *
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    10
 *
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    15
 * accompanied this code).
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    16
 *
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    20
 *
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    23
 * questions.
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    24
 */
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    25
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    26
package sun.rmi.transport;
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    27
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    28
import java.io.ObjectInputFilter;
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    29
import java.io.ObjectInputStream;
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    30
import java.rmi.dgc.Lease;
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    31
import java.rmi.dgc.VMID;
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    32
import java.rmi.server.UID;
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    33
import java.security.AccessController;
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    34
import java.security.PrivilegedAction;
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    35
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    36
import sun.rmi.server.UnicastRef;
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    37
import sun.rmi.transport.tcp.TCPConnection;
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    38
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    39
/**
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    40
 * Stubs to invoke DGC remote methods.
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    41
 * Originally generated from RMIC but frozen to insert serialFilter.
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    42
 */
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    43
@SuppressWarnings({"deprecation", "serial"})
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    44
public final class DGCImpl_Stub
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    45
        extends java.rmi.server.RemoteStub
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    46
        implements java.rmi.dgc.DGC {
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    47
    private static final java.rmi.server.Operation[] operations = {
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    48
            new java.rmi.server.Operation("void clean(java.rmi.server.ObjID[], long, java.rmi.dgc.VMID, boolean)"),
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    49
            new java.rmi.server.Operation("java.rmi.dgc.Lease dirty(java.rmi.server.ObjID[], long, java.rmi.dgc.Lease)")
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    50
    };
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    51
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    52
    private static final long interfaceHash = -669196253586618813L;
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    53
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    54
    /** Registry max depth of remote invocations. **/
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    55
    private static int DGCCLIENT_MAX_DEPTH = 6;
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    56
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    57
    /** Registry maximum array size in remote invocations. **/
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    58
    private static int DGCCLIENT_MAX_ARRAY_SIZE = 10000;
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    59
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    60
    // constructors
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    61
    public DGCImpl_Stub() {
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    62
        super();
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    63
    }
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    64
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    65
    public DGCImpl_Stub(java.rmi.server.RemoteRef ref) {
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    66
        super(ref);
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    67
    }
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    68
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    69
    // methods from remote interfaces
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    70
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    71
    // implementation of clean(ObjID[], long, VMID, boolean)
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    72
    public void clean(java.rmi.server.ObjID[] $param_arrayOf_ObjID_1, long $param_long_2, java.rmi.dgc.VMID $param_VMID_3, boolean $param_boolean_4)
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    73
            throws java.rmi.RemoteException {
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    74
        try {
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    75
            java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject) this, operations, 0, interfaceHash);
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    76
            try {
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    77
                java.io.ObjectOutput out = call.getOutputStream();
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    78
                out.writeObject($param_arrayOf_ObjID_1);
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    79
                out.writeLong($param_long_2);
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    80
                out.writeObject($param_VMID_3);
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    81
                out.writeBoolean($param_boolean_4);
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    82
            } catch (java.io.IOException e) {
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    83
                throw new java.rmi.MarshalException("error marshalling arguments", e);
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    84
            }
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    85
            ref.invoke(call);
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    86
            ref.done(call);
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    87
        } catch (java.lang.RuntimeException e) {
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    88
            throw e;
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    89
        } catch (java.rmi.RemoteException e) {
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    90
            throw e;
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    91
        } catch (java.lang.Exception e) {
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    92
            throw new java.rmi.UnexpectedException("undeclared checked exception", e);
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    93
        }
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    94
    }
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    95
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    96
    // implementation of dirty(ObjID[], long, Lease)
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    97
    public java.rmi.dgc.Lease dirty(java.rmi.server.ObjID[] $param_arrayOf_ObjID_1, long $param_long_2, java.rmi.dgc.Lease $param_Lease_3)
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    98
            throws java.rmi.RemoteException {
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
    99
        try {
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   100
            java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject) this, operations, 1, interfaceHash);
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   101
            try {
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   102
                java.io.ObjectOutput out = call.getOutputStream();
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   103
                out.writeObject($param_arrayOf_ObjID_1);
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   104
                out.writeLong($param_long_2);
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   105
                out.writeObject($param_Lease_3);
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   106
            } catch (java.io.IOException e) {
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   107
                throw new java.rmi.MarshalException("error marshalling arguments", e);
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   108
            }
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   109
            ref.invoke(call);
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   110
            java.rmi.dgc.Lease $result;
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   111
            Connection connection = ((StreamRemoteCall) call).getConnection();
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   112
            try {
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   113
                java.io.ObjectInput in = call.getInputStream();
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   114
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   115
                if (in instanceof ObjectInputStream) {
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   116
                    /**
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   117
                     * Set a filter on the stream for the return value.
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   118
                     */
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   119
                    ObjectInputStream ois = (ObjectInputStream) in;
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   120
                    AccessController.doPrivileged((PrivilegedAction<Void>)() -> {
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   121
                        ois.setObjectInputFilter(DGCImpl_Stub::leaseFilter);
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   122
                        return null;
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   123
                    });
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   124
                }
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   125
                $result = (java.rmi.dgc.Lease) in.readObject();
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   126
            } catch (java.io.IOException | java.lang.ClassNotFoundException e) {
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   127
                if (connection instanceof TCPConnection) {
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   128
                    // Modified to prevent re-use of the connection after an exception
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   129
                    ((TCPConnection) connection).getChannel().free(connection, false);
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   130
                }
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   131
                throw new java.rmi.UnmarshalException("error unmarshalling return", e);
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   132
            } finally {
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   133
                ref.done(call);
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   134
            }
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   135
            return $result;
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   136
        } catch (java.lang.RuntimeException e) {
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   137
            throw e;
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   138
        } catch (java.rmi.RemoteException e) {
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   139
            throw e;
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   140
        } catch (java.lang.Exception e) {
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   141
            throw new java.rmi.UnexpectedException("undeclared checked exception", e);
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   142
        }
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   143
    }
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   144
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   145
    /**
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   146
     * ObjectInputFilter to filter DGCClient return value (a Lease).
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   147
     * The list of acceptable classes is very short and explicit.
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   148
     * The depth and array sizes are limited.
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   149
     *
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   150
     * @param filterInfo access to class, arrayLength, etc.
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   151
     * @return  {@link ObjectInputFilter.Status#ALLOWED} if allowed,
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   152
     *          {@link ObjectInputFilter.Status#REJECTED} if rejected,
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   153
     *          otherwise {@link ObjectInputFilter.Status#UNDECIDED}
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   154
     */
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   155
    private static ObjectInputFilter.Status leaseFilter(ObjectInputFilter.FilterInfo filterInfo) {
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   156
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   157
        if (filterInfo.depth() > DGCCLIENT_MAX_DEPTH) {
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   158
            return ObjectInputFilter.Status.REJECTED;
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   159
        }
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   160
        Class<?> clazz = filterInfo.serialClass();
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   161
        if (clazz != null) {
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   162
            while (clazz.isArray()) {
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   163
                if (filterInfo.arrayLength() >= 0 && filterInfo.arrayLength() > DGCCLIENT_MAX_ARRAY_SIZE) {
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   164
                    return ObjectInputFilter.Status.REJECTED;
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   165
                }
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   166
                // Arrays are allowed depending on the component type
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   167
                clazz = clazz.getComponentType();
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   168
            }
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   169
            if (clazz.isPrimitive()) {
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   170
                // Arrays of primitives are allowed
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   171
                return ObjectInputFilter.Status.ALLOWED;
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   172
            }
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   173
            return (clazz == UID.class ||
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   174
                    clazz == VMID.class ||
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   175
                    clazz == Lease.class)
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   176
                    ? ObjectInputFilter.Status.ALLOWED
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   177
                    : ObjectInputFilter.Status.REJECTED;
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   178
        }
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   179
        // Not a class, not size limited
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   180
        return ObjectInputFilter.Status.UNDECIDED;
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   181
    }
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   182
75fef64e21fa 8163958: Improved garbage collection
rriggs
parents:
diff changeset
   183
}