下面列出了io.netty.util.internal.PlatformDependent#freeMemory ( ) 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。
@Override
protected void freeDirect(ByteBuffer buffer) {
PlatformDependent.freeMemory(memoryAddress);
}
/**
* Free this {@link KQueueEventArray}. Any usage after calling this method may segfault the JVM!
*/
void free() {
PlatformDependent.freeMemory(memoryAddress);
memoryAddress = size = capacity = 0;
}
void free() {
PlatformDependent.freeMemory(memoryAddress);
memoryAddress = 0;
}
/**
* Free this {@link EpollEventArray}. Any usage after calling this method may segfault the JVM!
*/
void free() {
PlatformDependent.freeMemory(memoryAddress);
}
/**
* Release the {@link IovArray}. Once release further using of it may crash the JVM!
*/
void release() {
PlatformDependent.freeMemory(memoryAddress);
}
/**
* Free this {@link EpollEventArray}. Any usage after calling this method may segfault the JVM!
* 这个EpollEventArray免费。调用此方法后的任何用法都可能导致JVM故障!
*/
void free() {
PlatformDependent.freeMemory(memoryAddress);
}