Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 299 for writeLoc (0.12 sec)

  1. src/cmd/link/internal/ld/outbuf.go

    // maxOutBufHeapLen limits the growth of the heap area.
    const maxOutBufHeapLen = 10 << 20
    
    // writeLoc determines the write location if a buffer is mmaped.
    // We maintain two write buffers, an mmapped section, and a heap section for
    // writing. When the mmapped section is full, we switch over the heap memory
    // for writing.
    func (out *OutBuf) writeLoc(lenToWrite int64) (int64, []byte) {
    	// See if we have enough space in the mmaped area.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 17 19:51:29 UTC 2022
    - 8.1K bytes
    - Viewed (0)
  2. src/cmd/link/internal/ld/outbuf_test.go

    	for i, test := range tests {
    		ob := &OutBuf{
    			buf:  make([]byte, test.bufLen),
    			off:  test.off,
    			heap: make([]byte, test.heapLen),
    		}
    		pos, buf := ob.writeLoc(test.lenToWrite)
    		if pos != test.writePos {
    			t.Errorf("[%d] position = %d, expected %d", i, pos, test.writePos)
    		}
    		message := "mmapped area"
    		expected := ob.buf
    		if test.addressInHeap {
    			message = "heap"
    			expected = ob.heap
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 08 20:03:01 UTC 2021
    - 2.2K bytes
    - Viewed (0)
  3. src/net/writev_test.go

    	oldHook := poll.TestHookDidWritev
    	defer func() { poll.TestHookDidWritev = oldHook }()
    	var writeLog struct {
    		sync.Mutex
    		log []int
    	}
    	poll.TestHookDidWritev = func(size int) {
    		writeLog.Lock()
    		writeLog.log = append(writeLog.log, size)
    		writeLog.Unlock()
    	}
    	var want bytes.Buffer
    	for i := 0; i < chunks; i++ {
    		want.WriteByte(byte(i))
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 5K bytes
    - Viewed (0)
  4. src/internal/poll/fd_unix.go

    				continue
    			}
    		}
    		if err != nil {
    			return 0, err
    		}
    		return len(p), nil
    	}
    }
    
    // WriteTo wraps the sendto network call.
    func (fd *FD) WriteTo(p []byte, sa syscall.Sockaddr) (int, error) {
    	if err := fd.writeLock(); err != nil {
    		return 0, err
    	}
    	defer fd.writeUnlock()
    	if err := fd.pd.prepareWrite(fd.isFile); err != nil {
    		return 0, err
    	}
    	for {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 04:09:44 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  5. src/internal/poll/fd_windows.go

    	})
    	o.ClearBufs()
    	TestHookDidWritev(n)
    	consume(buf, int64(n))
    	return int64(n), err
    }
    
    // WriteTo wraps the sendto network call.
    func (fd *FD) WriteTo(buf []byte, sa syscall.Sockaddr) (int, error) {
    	if err := fd.writeLock(); err != nil {
    		return 0, err
    	}
    	defer fd.writeUnlock()
    
    	if len(buf) == 0 {
    		// handle zero-byte payload
    		o := &fd.wop
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 31 16:50:42 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  6. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/console/DefaultRedrawableLabel.java

        public Cursor getWritePosition() {
            return writePos;
        }
    
        public void setVisible(boolean isVisible) {
            this.isVisible = isVisible;
        }
    
        public boolean isOverlappingWith(Cursor cursor) {
            return cursor.row == writePos.row && writePos.col > cursor.col;
        }
    
        @Override
        public void redraw(AnsiContext ansi) {
            if (writePos.row < 0) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  7. subprojects/core/src/main/java/org/gradle/util/internal/DisconnectableInputStream.java

                            try {
                                while (!closed && writePos == buffer.length && writePos != readPos) {
                                    // buffer is full, wait until it has been read
                                    condition.await();
                                }
                                assert writePos >= readPos;
                                if (closed) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 07 08:18:46 UTC 2021
    - 6.5K bytes
    - Viewed (0)
  8. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/console/DefaultAnsiExecutorTest.groovy

            Cursor writePos = Cursor.newBottomLeft();
            int startRow = writePos.row
            String text = "A" * TERMINAL_WIDTH
    
            when:
            ansiExecutor.writeAt(writePos) {
                it.a(text)
            }
    
            then:
            writeCursor == Cursor.at(startRow, TERMINAL_WIDTH)
            writePos == writeCursor
            0 * newLineListener._
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  9. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/console/DefaultAnsiExecutor.java

            private final Ansi delegate;
            private final ColorMap colorMap;
            private final Cursor writePos;
    
            AnsiContextImpl(Ansi delegate, ColorMap colorMap, Cursor writePos) {
                this.delegate = delegate;
                this.colorMap = colorMap;
                this.writePos = writePos;
            }
    
            @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  10. tensorflow/compiler/jit/build_xla_ops_pass_test.cc

      call->set_requested_device(kXlaDeviceName);
      Node* write_op = MakeWrite(root, "write");
      write_op->AddAttr(kXlaHasReferenceVarsAttr, false);
      root.graph()->AddControlEdge(call, write_op);
    
      std::unique_ptr<Graph> graph;
      TF_ASSERT_OK(BuildXlaOps(root, fdef_lib, &graph));
    
      Node* write_op_new = FindNodeByName(graph.get(), write_op->name());
      ASSERT_NE(write_op_new, nullptr);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 12.2K bytes
    - Viewed (0)
Back to top