Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-19558

ScopeCache doesn't see cleanup in shutdownServer

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.1.7
    • 3.1.7
    • JavaScript
    • None
    • Fully Compatible
    • ALL
    • Platform 7 08/10/15
    • 0

    Description

      Migrating to SpiderMonkey had a necessary but unfortunate implementation side effect of adding a thread in between the the scope cache and the actual scopes it caches. We added that thread because SpiderMonkey strictly requires that runtime's only be accessed by one thread across their entire lifetime.

      It seems that LSAN can't track reachability across this thread, which is a problem because the scope cache is global. Our lack of clean shutdown prevents the cache from ever being cleaned up, which then looks to LSAN like a leak.

      Let's fix that by dropping the cache in shutdownServer

      Attachments

        Activity

          People

            mira.carey@mongodb.com Mira Carey
            mira.carey@mongodb.com Mira Carey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: