Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-15511

[Python] GIL not held for Ndarray1DIndexer on

    XMLWordPrintableJSON

Details

    Description

      In _ndarray_to_array the call to NdarrayToArrow in explicitly excluded from the GIL.  In some code-paths Ndarray1DIndexer is instantiated which will try to do PyINC_REF and PyDdecREf on initialization and destruction.  These code paths do not appear to acquire the GIL.

       

      I'm not sure what the best fix is:

      1. Acquire GIL as part of Ndarray1DIndexer construction.
      2. Eliminate the nogil block in _ndarray_to_array
      3. Eliminate the incref and decref calls in Ndarray1DIndexer
      4. Something else?

      Attachments

        Issue Links

          Activity

            People

              emkornfield Micah Kornfield
              emkornfield Micah Kornfield
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 10m
                  1h 10m