Change the SimpleMemoryUsageTracker API to throw upon calling add() with too big a value

XMLWordPrintableJSON

    • Query Optimization
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Currently, the API of SimpleMemoryUsageTracker is such that the call to add() must be followed by a call to withinMemoryLimit() to see if we should hit an assertion that we have used too much memory. We should consider a different API where the call to add() throws if we would exceed the _maxAllowedMemoryUsageBytes by performing this add().

      Maybe this should also be applied to the MemoryUsageTracker class as well?

      CC Nicholas Zolnierz 

              Assignee:
              Unassigned
              Reporter:
              Militsa Sotirova
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: