Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for CrashCall (0.15 sec)

  1. test/fixedbugs/issue5291.dir/prog.go

    // license that can be found in the LICENSE file.
    
    package main
    
    import (
    	"./pkg1"
    )
    
    type message struct { // Presence of this creates a crash
    	data pkg1.Data
    }
    
    func main() {
    	pkg1.CrashCall()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 25 16:47:12 UTC 2013
    - 307 bytes
    - Viewed (0)
  2. test/fixedbugs/issue5291.dir/pkg1.go

    // license that can be found in the LICENSE file.
    
    package pkg1
    
    import (
    	"runtime"
    )
    
    type T2 *[]string
    
    type Data struct {
    	T1 *[]T2
    }
    
    func CrashCall() (err error) {
    	var d Data
    
    	for count := 0; count < 10; count++ {
    		runtime.GC()
    
    		len := 2 // crash when >=2
    		x := make([]T2, len)
    
    		d = Data{T1: &x}
    
    		for j := 0; j < len; j++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 25 16:47:12 UTC 2013
    - 515 bytes
    - Viewed (0)
Back to top