提交 ac288991 编写于 作者: K Kohsuke Kawaguchi

doc improvements

上级 012f447b
......@@ -39,6 +39,12 @@ final class ImportedClassLoaderTable {
this.channel = channel;
}
/**
* Maps the exported object ID to the classloader.
*
* <p>
* This method "consumes" the given oid for the purpose of reference counting.
*/
public synchronized ClassLoader get(int oid) {
return get(RemoteInvocationHandler.wrap(channel,oid,IClassLoader.class,false,false));
}
......
......@@ -61,6 +61,7 @@ class MultiClassLoaderSerializer {
}
// tell the receiving side that they need to import a new classloader
// this reference count is released when RemoteInvocationHandler backing IClassLoader is GCed on the remote node.
writeInt(TAG_EXPORTED_CLASSLOADER);
writeInt(RemoteClassLoader.exportId(cl,channel));
} else {// reference to a classloader that's already written
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册