ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vkuliche...@apache.org
Subject incubator-ignite git commit: # IGNITE-505 - Shmem debug
Date Thu, 19 Mar 2015 02:36:01 GMT
Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-505 [created] e56252b7c


# IGNITE-505 - Shmem debug


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/e56252b7
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/e56252b7
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/e56252b7

Branch: refs/heads/ignite-505
Commit: e56252b7c8898cb99a8d8d73e848a44acc091942
Parents: fe649a4
Author: Valentin Kulichenko <vkulichenko@gridgain.com>
Authored: Wed Mar 18 19:37:24 2015 -0700
Committer: Valentin Kulichenko <vkulichenko@gridgain.com>
Committed: Wed Mar 18 19:37:24 2015 -0700

----------------------------------------------------------------------
 .../internal/util/ipc/shmem/IpcSharedMemoryServerEndpoint.java   | 2 ++
 .../ignite/internal/util/ipc/shmem/IpcSharedMemorySpace.java     | 4 ++++
 2 files changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/e56252b7/modules/core/src/main/java/org/apache/ignite/internal/util/ipc/shmem/IpcSharedMemoryServerEndpoint.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/util/ipc/shmem/IpcSharedMemoryServerEndpoint.java
b/modules/core/src/main/java/org/apache/ignite/internal/util/ipc/shmem/IpcSharedMemoryServerEndpoint.java
index 8c2fcb0..8766eb7 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/util/ipc/shmem/IpcSharedMemoryServerEndpoint.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/util/ipc/shmem/IpcSharedMemoryServerEndpoint.java
@@ -671,6 +671,8 @@ public class IpcSharedMemoryServerEndpoint implements IpcServerEndpoint
{
                         if (log.isDebugEnabled())
                             log.debug("Possibly stale token file: " + f0);
 
+                        U.dumpStack(">>> FREE <<<");
+
                         IpcSharedMemoryUtils.freeSystemResources(f0.getAbsolutePath(), size);
 
                         if (f0.delete()) {

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/e56252b7/modules/core/src/main/java/org/apache/ignite/internal/util/ipc/shmem/IpcSharedMemorySpace.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/util/ipc/shmem/IpcSharedMemorySpace.java
b/modules/core/src/main/java/org/apache/ignite/internal/util/ipc/shmem/IpcSharedMemorySpace.java
index 249d995..1b7aaca 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/util/ipc/shmem/IpcSharedMemorySpace.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/util/ipc/shmem/IpcSharedMemorySpace.java
@@ -87,6 +87,8 @@ public class IpcSharedMemorySpace implements Closeable {
 
         opSize = size;
 
+        U.dumpStack(">>> ALLOCATE <<<");
+
         shmemPtr = IpcSharedMemoryUtils.allocateSystemResources(tokFileName, size, DEBUG
&& log.isDebugEnabled());
 
         shmemId = IpcSharedMemoryUtils.sharedMemoryId(shmemPtr);
@@ -297,6 +299,8 @@ public class IpcSharedMemorySpace implements Closeable {
         lock.writeLock().lock();
 
         try {
+            U.dumpStack(">>> FREE <<<");
+
             IpcSharedMemoryUtils.freeSystemResources(tokFileName, shmemPtr, force);
         }
         finally {


Mime
View raw message