Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
allow IncRef/DecRef microoptimization on .NET Standard
  • Loading branch information
lostmsu committed Dec 2, 2020
commit 8a82bc25b6da6c89e7ec7778b451be24955c45b9
4 changes: 2 additions & 2 deletions src/runtime/runtime.cs
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,7 @@ internal static Type[] PythonArgsToTypeArray(IntPtr arg, bool mangleObjects)
/// </summary>
internal static unsafe void XIncref(IntPtr op)
{
#if PYTHON_WITH_PYDEBUG || NETSTANDARD
#if PYTHON_WITH_PYDEBUG
Py_IncRef(op);
return;
#else
Expand Down Expand Up @@ -736,7 +736,7 @@ internal static IntPtr SelfIncRef(IntPtr op)

internal static unsafe void XDecref(IntPtr op)
{
#if PYTHON_WITH_PYDEBUG || NETSTANDARD
#if PYTHON_WITH_PYDEBUG
Py_DecRef(op);
return;
#else
Expand Down