Fix VM memory allocation optimizations by reducing what we allocate on the heap
This commit is contained in:
@@ -20,8 +20,8 @@ func FFI(args ...object.Object) object.Object {
|
||||
return newError(err.Error())
|
||||
}
|
||||
|
||||
name := args[0].(*object.String).Value
|
||||
symbol := args[1].(*object.String).Value
|
||||
name := args[0].(object.String).Value
|
||||
symbol := args[1].(object.String).Value
|
||||
|
||||
p, err := plugin.Open(fmt.Sprintf("%s.so", name))
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user