rushsky518 opened a new issue #1780: question about ReferenceResource#hold URL: https://github.com/apache/rocketmq/issues/1780 ````java protected final AtomicLong refCount = new AtomicLong(1); public synchronized boolean hold() { if (this.isAvailable()) { if (this.refCount.getAndIncrement() > 0) { return true; } else { this.refCount.getAndDecrement(); } } return false; } ```` refCount is already AtomicLong type, is it necessary to put `hold` method in a synchronized block
---------------------------------------------------------------- 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
