Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for purgeSignatureCache (0.18 sec)

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

    // Copyright 2020 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build !darwin
    
    package ld
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 27 19:14:57 UTC 2023
    - 236 bytes
    - Viewed (0)
  2. src/cmd/link/internal/ld/outbuf_darwin.go

    		Offset:  0,
    		Length:  int64(size - cursize),
    	}
    
    	_, err = fcntl(int(out.f.Fd()), syscall.F_PREALLOCATE, int(uintptr(unsafe.Pointer(store))))
    	return err
    }
    
    func (out *OutBuf) purgeSignatureCache() {
    	// Apparently, the Darwin kernel may cache the code signature at mmap.
    	// When we mmap the output buffer, it doesn't have a code signature
    	// (as we haven't generated one). Invalidate the kernel cache now that
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 13 15:50:02 UTC 2022
    - 1.3K bytes
    - Viewed (0)
  3. src/cmd/link/internal/ld/outbuf.go

    var viewCloseError = errors.New("cannot Close OutBuf from View")
    
    func (out *OutBuf) Close() error {
    	if out.isView {
    		return viewCloseError
    	}
    	if out.isMmapped() {
    		out.copyHeap()
    		out.purgeSignatureCache()
    		out.munmap()
    	}
    	if out.f == nil {
    		return nil
    	}
    	if len(out.heap) != 0 {
    		if _, err := out.f.Write(out.heap); err != nil {
    			return err
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 17 19:51:29 UTC 2022
    - 8.1K bytes
    - Viewed (0)
Back to top