yu199195 commented on code in PR #3335: URL: https://github.com/apache/incubator-shenyu/pull/3335#discussion_r858357484
########## shenyu-common/src/main/java/org/apache/shenyu/common/concurrent/MemoryLimiter.java: ########## @@ -214,13 +214,12 @@ public void acquireInterruptibly(final Object o) throws InterruptedException { } acquireLock.lockInterruptibly(); try { - final long sum = memory.sum(); final long objectSize = inst.getObjectSize(o); - while (sum + objectSize >= memoryLimit) { + while (memory.sum() + objectSize >= memoryLimit) { Review Comment: hi,` sum + objectSize ` and `memory.sum() + objectSize` What's the difference? -- 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. To unsubscribe, e-mail: notifications-unsubscr...@shenyu.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org