if (fd != null) synchronized (fd) { FileDescriptor fd = this.fd; this.fd = null; int ifd = java.io.JikesRVMSupport.getFd(fd); VM_BootRecord bootRecord = VM_BootRecord.the_boot_record; int rc = VM.sysCall1(bootRecord.sysNetSocketCloseIP, ifd);   }
if (native_fd != -1) { int close_fd = native_fd; this.native_fd = -1; VM_BootRecord bootRecord = VM_BootRecord.the_boot_record; int rc = VM.sysCall1(bootRecord.sysNetSocketCloseIP, close_fd); }
    protected void close() throws IOException {	if (fd != null) 	    synchronized (fd) {		FileDescriptor fd = this.fd;		this.fd = null;		int ifd = java.io.JikesRVMSupport.getFd(fd);		VM_BootRecord bootRecord = VM_BootRecord.the_boot_record;		int rc = VM.sysCall1(bootRecord.sysNetSocketCloseIP, ifd);		/*		java.io.JikesRVMSupport.deref(fd);		int ifd = java.io.JikesRVMSupport.getFd(fd);		if (java.io.JikesRVMSupport.dead(fd)) {		    VM_BootRecord bootRecord = VM_BootRecord.the_boot_record;		    int rc = VM.sysCall1(bootRecord.sysNetSocketCloseIP, ifd);		} else		    FileSupport.sync(ifd);		*/	    }    }