src/share/classes/sun/rmi/transport/ObjectTable.java
Print this page
*** 60,72 ****
*/
private static final Object tableLock = new Object();
/** tables mapping to Target, keyed from ObjectEndpoint and impl object */
private static final Map<ObjectEndpoint,Target> objTable =
! new HashMap<ObjectEndpoint,Target>();
private static final Map<WeakRef,Target> implTable =
! new HashMap<WeakRef,Target>();
/**
* lock guarding keepAliveCount, reaper, and gcLatencyRequest.
* Holders may NOT acquire a Target instance's lock or tableLock.
*/
--- 60,72 ----
*/
private static final Object tableLock = new Object();
/** tables mapping to Target, keyed from ObjectEndpoint and impl object */
private static final Map<ObjectEndpoint,Target> objTable =
! new HashMap<>();
private static final Map<WeakRef,Target> implTable =
! new HashMap<>();
/**
* lock guarding keepAliveCount, reaper, and gcLatencyRequest.
* Holders may NOT acquire a Target instance's lock or tableLock.
*/
*** 77,87 ****
/** thread to collect unreferenced objects from table */
private static Thread reaper = null;
/** queue notified when weak refs in the table are cleared */
! static final ReferenceQueue reapQueue = new ReferenceQueue();
/** handle for GC latency request (for future cancellation) */
private static GC.LatencyRequest gcLatencyRequest = null;
/*
--- 77,87 ----
/** thread to collect unreferenced objects from table */
private static Thread reaper = null;
/** queue notified when weak refs in the table are cleared */
! static final ReferenceQueue<Object> reapQueue = new ReferenceQueue<>();
/** handle for GC latency request (for future cancellation) */
private static GC.LatencyRequest gcLatencyRequest = null;
/*