Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for safe_point (0.19 sec)

  1. test/codegen/memcombine.go

    	b = a
    	return
    }
    
    // Make sure we don't put pointers in SSE registers across safe
    // points.
    
    func safe_point(p, q *[2]*int) {
    	a, b := p[0], p[1] // amd64:-`MOVUPS`
    	runtime.GC()
    	q[0], q[1] = a, b // amd64:-`MOVUPS`
    }
    
    // ------------- //
    //    Storing    //
    // ------------- //
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 19:45:41 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  2. tests/transaction_test.go

    	}
    
    	if err := tx.SavePoint("save_point1").Error; err != nil {
    		t.Fatalf("Failed to save point, got error %v", err)
    	}
    
    	user1 := *GetUser("transaction-save-point-1", Config{})
    	tx.Create(&user1)
    
    	if err := tx.First(&User{}, "name = ?", user1.Name).Error; err != nil {
    		t.Fatalf("Should find saved record")
    	}
    
    	if err := tx.RollbackTo("save_point1").Error; err != nil {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed May 08 04:07:58 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  3. test/fixedbugs/issue14591.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Test to make sure we don't think values are dead
    // when they are assigned to a PPARAMOUT slot before
    // the last GC safepoint.
    
    package main
    
    import (
    	"fmt"
    	"runtime"
    )
    
    // When a T is deallocated, T[1] is certain to
    // get clobbered (the runtime writes 0xdeaddeaddeaddead there).
    type T [4]int
    
    func f() (r, s *T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 769 bytes
    - Viewed (0)
  4. finisher_api.go

    			db.AddError(committer.Rollback())
    		}
    	} else {
    		db.AddError(ErrInvalidTransaction)
    	}
    	return db
    }
    
    func (db *DB) SavePoint(name string) *DB {
    	if savePointer, ok := db.Dialector.(SavePointerDialectorInterface); ok {
    		// close prepared statement, because SavePoint not support prepared statement.
    		// e.g. mysql8.0 doc: https://dev.mysql.com/doc/refman/8.0/en/sql-prepared-statements.html
    		var (
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Fri Jan 12 08:42:21 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  5. interfaces.go

    	QueryRowContext(ctx context.Context, query string, args ...interface{}) *sql.Row
    }
    
    // SavePointerDialectorInterface save pointer interface
    type SavePointerDialectorInterface interface {
    	SavePoint(tx *DB, name string) error
    	RollbackTo(tx *DB, name string) error
    }
    
    // TxBeginner tx beginner
    type TxBeginner interface {
    	BeginTx(ctx context.Context, opts *sql.TxOptions) (*sql.Tx, error)
    }
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Sat Aug 19 13:33:31 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/liveness/plive.go

    	lv.livevars = lv.livevars[:0]
    }
    
    func (lv *liveness) enableClobber() {
    	// The clobberdead experiment inserts code to clobber pointer slots in all
    	// the dead variables (locals and args) at every synchronous safepoint.
    	if !base.Flag.ClobberDead {
    		return
    	}
    	if lv.fn.Pragma&ir.CgoUnsafeArgs != 0 {
    		// C or assembly code uses the exact frame layout. Don't clobber.
    		return
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 15:22:22 UTC 2024
    - 45.2K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/_gen/WasmOps.go

    		// We have a special op for this so as to not confuse GCCallOff
    		// (particularly stack maps). It takes a memory arg so it
    		// gets correctly ordered with respect to GC safepoints.
    		// arg0=ptr/int arg1=mem, output=int/ptr
    		//
    		// TODO(neelance): LoweredConvert should not be necessary any more, since OpConvert does not need to be lowered any more (CL 108496).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 00:21:13 UTC 2023
    - 17.7K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/walk/range.go

    		// It is guaranteed to always be in range, keeps the backing store alive,
    		// and is updated on stack copies. If a GC occurs when this function is
    		// suspended at any safepoint, this variable ensures correct operation.
    		//
    		// hu contains the equivalent uintptr version. It may point past the
    		// end, but doesn't keep the backing store alive and doesn't get updated
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 14:52:33 UTC 2023
    - 17.6K bytes
    - Viewed (0)
  9. src/cmd/internal/obj/link.go

    	Asym    *LSym
    	Aoffset int32
    	Name    AddrName
    	Gotype  *LSym
    }
    
    // RegSpill provides spill/fill information for a register-resident argument
    // to a function.  These need spilling/filling in the safepoint/stackgrowth case.
    // At the time of fill/spill, the offset must be adjusted by the architecture-dependent
    // adjustment to hardware SP that occurs in a call instruction.  E.g., for AMD64,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/_gen/genericOps.go

    	// Convert converts between pointers and integers.
    	// We have a special op for this so as to not confuse GC
    	// (particularly stack maps).  It takes a memory arg so it
    	// gets correctly ordered with respect to GC safepoints.
    	// It gets compiled to nothing, so its result must in the same
    	// register as its argument. regalloc knows it can use any
    	// allocatable integer register for OpConvert.
    	// arg0=ptr/int arg1=mem, output=int/ptr
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 42.6K bytes
    - Viewed (0)
Back to top