Uploaded image for project: 'Lucee Development'
  1. LDEV-834

CollectionMap Causes a Threadleak when parallel=true

    Details

    • Type: Bug
    • Status: Deployed
    • Priority: New
    • Resolution: Fixed
    • Affects Version/s: 4.5.3.015
    • Fix Version/s: 4.5.3.016, 5.0.0.246
    • Labels:
      None

      Description

      If we run this code, at the end, there will be 100 threads still alive that won't day. (They are "parked", but still there)

      ocal.mycollection = {};
      for (local.i = 0; local.i < 1000; local.i++)

      { local.mycollection[local.i] = local.i; }

      dump(collectionMap(
      local.myCollection,
      function(v)

      { return arguments.v * 2; }

      ,
      true,
      100
      ));

      We have a potential fix. I hope to have a pull request soon.

        Attachments

          Activity

            People

            • Assignee:
              michaeloffner Michael Offner
              Reporter:
              colby.litnak Colby Litnak
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: