mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 03:02:25 -05:00 
			
		
		
		
	[chore]: Bump github.com/tetratelabs/wazero from 1.8.2 to 1.9.0 (#3827)
Bumps [github.com/tetratelabs/wazero](https://github.com/tetratelabs/wazero) from 1.8.2 to 1.9.0. - [Release notes](https://github.com/tetratelabs/wazero/releases) - [Commits](https://github.com/tetratelabs/wazero/compare/v1.8.2...v1.9.0) --- updated-dependencies: - dependency-name: github.com/tetratelabs/wazero dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
		
					parent
					
						
							
								96d39155f2
							
						
					
				
			
			
				commit
				
					
						d2cf9de726
					
				
			
		
					 14 changed files with 88 additions and 80 deletions
				
			
		
							
								
								
									
										27
									
								
								vendor/github.com/tetratelabs/wazero/runtime.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										27
									
								
								vendor/github.com/tetratelabs/wazero/runtime.go
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -7,7 +7,10 @@ import ( | |||
| 
 | ||||
| 	"github.com/tetratelabs/wazero/api" | ||||
| 	experimentalapi "github.com/tetratelabs/wazero/experimental" | ||||
| 	"github.com/tetratelabs/wazero/internal/engine/interpreter" | ||||
| 	"github.com/tetratelabs/wazero/internal/engine/wazevo" | ||||
| 	"github.com/tetratelabs/wazero/internal/expctxkeys" | ||||
| 	"github.com/tetratelabs/wazero/internal/platform" | ||||
| 	internalsock "github.com/tetratelabs/wazero/internal/sock" | ||||
| 	internalsys "github.com/tetratelabs/wazero/internal/sys" | ||||
| 	"github.com/tetratelabs/wazero/internal/wasm" | ||||
|  | @ -148,15 +151,31 @@ func NewRuntime(ctx context.Context) Runtime { | |||
| // NewRuntimeWithConfig returns a runtime with the given configuration. | ||||
| func NewRuntimeWithConfig(ctx context.Context, rConfig RuntimeConfig) Runtime { | ||||
| 	config := rConfig.(*runtimeConfig) | ||||
| 	configKind := config.engineKind | ||||
| 	configEngine := config.newEngine | ||||
| 	if configKind == engineKindAuto { | ||||
| 		if platform.CompilerSupports(config.enabledFeatures) { | ||||
| 			configKind = engineKindCompiler | ||||
| 		} else { | ||||
| 			configKind = engineKindInterpreter | ||||
| 		} | ||||
| 	} | ||||
| 	if configEngine == nil { | ||||
| 		if configKind == engineKindCompiler { | ||||
| 			configEngine = wazevo.NewEngine | ||||
| 		} else { | ||||
| 			configEngine = interpreter.NewEngine | ||||
| 		} | ||||
| 	} | ||||
| 	var engine wasm.Engine | ||||
| 	var cacheImpl *cache | ||||
| 	if c := config.cache; c != nil { | ||||
| 		// If the Cache is configured, we share the engine. | ||||
| 		cacheImpl = c.(*cache) | ||||
| 		engine = cacheImpl.initEngine(config.engineKind, config.newEngine, ctx, config.enabledFeatures) | ||||
| 		engine = cacheImpl.initEngine(configKind, configEngine, ctx, config.enabledFeatures) | ||||
| 	} else { | ||||
| 		// Otherwise, we create a new engine. | ||||
| 		engine = config.newEngine(ctx, config.enabledFeatures, nil) | ||||
| 		engine = configEngine(ctx, config.enabledFeatures, nil) | ||||
| 	} | ||||
| 	store := wasm.NewStore(config.enabledFeatures, engine) | ||||
| 	return &runtime{ | ||||
|  | @ -306,7 +325,7 @@ func (r *runtime) InstantiateModule( | |||
| 
 | ||||
| 	var sysCtx *internalsys.Context | ||||
| 	if sysCtx, err = config.toSysContext(); err != nil { | ||||
| 		return | ||||
| 		return nil, err | ||||
| 	} | ||||
| 
 | ||||
| 	name := config.name | ||||
|  | @ -321,7 +340,7 @@ func (r *runtime) InstantiateModule( | |||
| 		if code.closeWithModule { | ||||
| 			_ = code.Close(ctx) // don't overwrite the error | ||||
| 		} | ||||
| 		return | ||||
| 		return nil, err | ||||
| 	} | ||||
| 
 | ||||
| 	if closeNotifier, ok := ctx.Value(expctxkeys.CloseNotifierKey{}).(experimentalapi.CloseNotifier); ok { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue