Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 161 for Allocate (0.2 sec)

  1. src/strconv/atoi.go

    // All ParseXXX functions allow the input string to escape to the error value.
    // This hurts strconv.ParseXXX(string(b)) calls where b is []byte since
    // the conversion from []byte must allocate a string on the heap.
    // If we assume errors are infrequent, then we can avoid escaping the input
    // back to the output by copying it first. This allows the compiler to call
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun May 05 00:24:26 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/io/FileUtil.java

            final FileInputStream is = InputStreamUtil.create(file);
            try {
                final FileChannel channel = is.getChannel();
                final ByteBuffer buffer = ByteBuffer.allocate((int) ChannelUtil.size(channel));
                ChannelUtil.read(channel, buffer);
                return buffer.array();
            } finally {
                CloseableUtil.close(is);
            }
        }
    
        /**
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 9K bytes
    - Viewed (0)
  3. src/runtime/lfstack.go

    }
    
    // lfnodeValidate panics if node is not a valid address for use with
    // lfstack.push. This only needs to be called when node is allocated.
    func lfnodeValidate(node *lfnode) {
    	if base, _, _ := findObject(uintptr(unsafe.Pointer(node)), 0, 0); base != 0 {
    		throw("lfstack node allocated from the heap")
    	}
    	if lfstackUnpack(lfstackPack(node, ^uintptr(0))) != node {
    		printlock()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 2K bytes
    - Viewed (0)
  4. src/runtime/traceallocfree.go

    		if s.state.get() == mSpanDead {
    			continue
    		}
    		// It's some kind of span, so trace that it exists.
    		trace.SpanExists(s)
    
    		// Write out allocated objects if it's a heap span.
    		if s.state.get() != mSpanInUse {
    			continue
    		}
    
    		// Find all allocated objects.
    		abits := s.allocBitsForIndex(0)
    		for i := uintptr(0); i < uintptr(s.nelems); i++ {
    			if abits.index < uintptr(s.freeindex) || abits.isMarked() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:32:51 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  5. api/maven-api-spi/src/main/java/org/apache/maven/api/spi/ModelParser.java

         *
         * @param dir the directory to locate the pom for, never {@code null}
         * @return a {@code Source} pointing to the located pom or an empty {@code Optional} if none was found by this parser
         */
        @Nonnull
        Optional<Source> locate(@Nonnull Path dir);
    
        /**
         * Parse the model obtained previously by a previous call to {@link #locate(Path)}.
         *
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Apr 12 10:50:18 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  6. pkg/kubelet/userns/userns_manager_switch_test.go

    	m2, err := MakeUserNsManager(testUserNsPodsManager)
    	require.NoError(t, err)
    
    	// The feature gate is off, no pods should be allocated.
    	for _, pod := range pods {
    		ok := m2.podAllocated(pod)
    		assert.False(t, ok, "pod %q should not be allocated", pod)
    	}
    }
    
    func TestGetOrCreateUserNamespaceMappingsSwitch(t *testing.T) {
    	// Enable the feature gate to create some pods on disk.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 5K bytes
    - Viewed (0)
  7. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CommandLineTaskExecutionIntegrationTest.groovy

            where:
            taskName | message
            ""       | "Cannot locate matching tasks for an empty path. The path should include a task name (for example ':help' or 'help')."
            ":"      | "Cannot locate tasks that match ':'. The path should include a task name (for example ':help' or 'help')."
            "::"     | "Cannot locate tasks that match '::'. The path should include a task name (for example ':help' or 'help')."
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 13:27:35 UTC 2024
    - 2.3K bytes
    - Viewed (3)
  8. testing/internal-testing/src/main/groovy/org/gradle/test/preconditions/PluginTestPreconditions.groovy

                return satisfied(UnitTestPreconditions.UnixDerivative) && locate("bash") != null
            }
        }
    
        static class DashAvailable implements TestPrecondition {
            @Override
            boolean isSatisfied() throws Exception {
                return satisfied(UnitTestPreconditions.UnixDerivative) && locate("dash") != null
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Apr 06 02:21:30 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  9. src/cmd/link/internal/ld/outbuf_mmap.go

    func (out *OutBuf) Mmap(filesize uint64) (err error) {
    	oldlen := len(out.buf)
    	if oldlen != 0 {
    		out.munmap()
    	}
    
    	for {
    		if err = out.fallocate(filesize); err != syscall.EINTR {
    			break
    		}
    	}
    	if err != nil {
    		// Some file systems do not support fallocate. We ignore that error as linking
    		// can still take place, but you might SIGBUS when you write to the mmapped
    		// area.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 11:20:31 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  10. platforms/core-runtime/file-temp/src/main/java/org/gradle/api/internal/file/temp/TemporaryFileProvider.java

    import org.gradle.internal.service.scopes.ServiceScope;
    
    import javax.annotation.Nullable;
    import java.io.File;
    
    @ServiceScope(Scope.Project.class)
    public interface TemporaryFileProvider {
        /**
         * Allocates a new temporary file with the exact specified path,
         * relative to the temporary file directory. Does not create the file.
         * Provides no guarantees around whether the file already exists.
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 1.7K bytes
    - Viewed (0)
Back to top