JoshRosen commented on a change in pull request #25985: 
[SPARK-29310][CORE][TESTS] TestMemoryManager should implement 
getExecutionMemoryUsageForTask()
URL: https://github.com/apache/spark/pull/25985#discussion_r329915451
 
 

 ##########
 File path: core/src/main/java/org/apache/spark/memory/MemoryConsumer.java
 ##########
 @@ -54,7 +54,7 @@ public MemoryMode getMode() {
   /**
    * Returns the size of used memory in bytes.
    */
-  protected long getUsed() {
+  public long getUsed() {
 
 Review comment:
   This is exposed so it can be used in `AbstractBytesToBytesMapSuite` to free 
the actual allocated memory (which is hard to calculate at the `free()` 
call-site because `spill()` may have been called).

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to