15 writes to GCHandle
System.Runtime.InteropServices.JavaScript (15)
System\Runtime\InteropServices\JavaScript\JSFunctionBinding.cs (1)
305res.slot.GCHandle = holder.GCHandle;
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.Byte.cs (1)
145slot.GCHandle = ctx.GetJSOwnedObjectGCHandle(value.Array, GCHandleType.Pinned);
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.Double.cs (1)
151slot.GCHandle = ctx.GetJSOwnedObjectGCHandle(value.Array, GCHandleType.Pinned);
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.Exception.cs (1)
98slot.GCHandle = ctx.GetJSOwnedObjectGCHandle(cpy);
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.Func.cs (8)
522slot.GCHandle = ctx.GetJSOwnedObjectGCHandle(cb); 544slot.GCHandle = ctx.GetJSOwnedObjectGCHandle(cb); 570slot.GCHandle = ctx.GetJSOwnedObjectGCHandle(cb); 600slot.GCHandle = ctx.GetJSOwnedObjectGCHandle(cb); 622slot.GCHandle = ctx.GetJSOwnedObjectGCHandle(cb); 648slot.GCHandle = ctx.GetJSOwnedObjectGCHandle(cb); 678slot.GCHandle = ctx.GetJSOwnedObjectGCHandle(cb); 712slot.GCHandle = ctx.GetJSOwnedObjectGCHandle(cb);
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.Int32.cs (1)
145slot.GCHandle = ctx.GetJSOwnedObjectGCHandle(value.Array, GCHandleType.Pinned);
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.Object.cs (1)
340slot.GCHandle = ctx.GetJSOwnedObjectGCHandle(value);
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.Single.cs (1)
151slot.GCHandle = ctx.GetJSOwnedObjectGCHandle(value.Array, GCHandleType.Pinned);
14 references to GCHandle
System.Runtime.InteropServices.JavaScript (14)
System\Runtime\InteropServices\JavaScript\Interop\JavaScriptExports.CoreCLR.cs (5)
30ctx.ReleaseJSOwnedObjectByGCHandle(arg1.slot.GCHandle); 50GCHandle callback_gc_handle = (GCHandle)arg1.slot.GCHandle; 81var holder = ctx.GetPromiseHolder(arg1.slot.GCHandle); 85ctx.ReleasePromiseHolder(arg1.slot.GCHandle); 109GCHandle exception_gc_handle = (GCHandle)arg1.slot.GCHandle;
System\Runtime\InteropServices\JavaScript\JSFunctionBinding.cs (1)
357var holderHandle = (GCHandle)arguments[1].slot.GCHandle;
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.Byte.cs (1)
125var array = (byte[])((GCHandle)slot.GCHandle).Target!;
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.Double.cs (1)
131var array = (double[])((GCHandle)slot.GCHandle).Target!;
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.Exception.cs (1)
29value = (Exception)((GCHandle)slot.GCHandle).Target;
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.Int32.cs (1)
125var array = (int[])((GCHandle)slot.GCHandle).Target!;
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.Object.cs (1)
32value = ((GCHandle)slot.GCHandle).Target;
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.Single.cs (1)
131var array = (float[])((GCHandle)slot.GCHandle).Target!;
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.Task.cs (2)
54PromiseHolder holder = ctx.GetPromiseHolder(slot.GCHandle); 114var holder = ctx.GetPromiseHolder(slot.GCHandle);