geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hiteshkhame...@apache.org
Subject [09/50] [abbrv] geode git commit: GEODE-2333: Fix a race in GatewaySenderEventImpl.release()
Date Tue, 14 Feb 2017 19:31:42 GMT
GEODE-2333: Fix a race in GatewaySenderEventImpl.release()


Project: http://git-wip-us.apache.org/repos/asf/geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/geode/commit/4eb61294
Tree: http://git-wip-us.apache.org/repos/asf/geode/tree/4eb61294
Diff: http://git-wip-us.apache.org/repos/asf/geode/diff/4eb61294

Branch: refs/heads/master
Commit: 4eb61294fe01ca2e9da65a7b888171dc23637374
Parents: fcf9085
Author: eshu <eshu@pivotal.io>
Authored: Mon Jan 23 13:37:39 2017 -0800
Committer: eshu <eshu@pivotal.io>
Committed: Mon Jan 23 13:37:39 2017 -0800

----------------------------------------------------------------------
 .../apache/geode/internal/cache/wan/GatewaySenderEventImpl.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/geode/blob/4eb61294/geode-core/src/main/java/org/apache/geode/internal/cache/wan/GatewaySenderEventImpl.java
----------------------------------------------------------------------
diff --git a/geode-core/src/main/java/org/apache/geode/internal/cache/wan/GatewaySenderEventImpl.java
b/geode-core/src/main/java/org/apache/geode/internal/cache/wan/GatewaySenderEventImpl.java
index f8de085..cacd326 100644
--- a/geode-core/src/main/java/org/apache/geode/internal/cache/wan/GatewaySenderEventImpl.java
+++ b/geode-core/src/main/java/org/apache/geode/internal/cache/wan/GatewaySenderEventImpl.java
@@ -1207,7 +1207,7 @@ public class GatewaySenderEventImpl
 
   @Override
   @Released(OffHeapIdentifier.GATEWAY_SENDER_EVENT_IMPL_VALUE)
-  public void release() {
+  public synchronized void release() {
     @Released(OffHeapIdentifier.GATEWAY_SENDER_EVENT_IMPL_VALUE)
     Object vo = this.valueObj;
     if (OffHeapHelper.releaseAndTrackOwner(vo, this)) {


Mime
View raw message