Skip to content

Commit

Permalink
Add OperatorContext#aggregateSystemMemoryContext method
Browse files Browse the repository at this point in the history
  • Loading branch information
sopel39 committed Mar 12, 2019
1 parent 98bad41 commit e4d97d1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,12 @@ public AggregatedMemoryContext aggregateUserMemoryContext()
return new InternalAggregatedMemoryContext(operatorMemoryContext.aggregateUserMemoryContext(), memoryFuture, this::updatePeakMemoryReservations, false);
}

// caller shouldn't close this context as it's managed by the OperatorContext
public AggregatedMemoryContext aggregateSystemMemoryContext()
{
return new InternalAggregatedMemoryContext(operatorMemoryContext.aggregateSystemMemoryContext(), memoryFuture, this::updatePeakMemoryReservations, false);
}

// caller shouldn't close this context as it's managed by the OperatorContext
public AggregatedMemoryContext aggregateRevocableMemoryContext()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@ public AggregatedMemoryContext aggregateRevocableMemoryContext()
return revocableAggregateMemoryContext;
}

public AggregatedMemoryContext aggregateSystemMemoryContext()
{
return systemAggregateMemoryContext;
}

public AggregatedMemoryContext newAggregateSystemMemoryContext()
{
return systemAggregateMemoryContext.newAggregatedMemoryContext();
Expand Down

0 comments on commit e4d97d1

Please sign in to comment.