ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [21/49] ignite git commit: GG-12544 Removed limitation for stacktrace showing.
Date Tue, 01 Aug 2017 10:37:21 GMT
GG-12544 Removed limitation for stacktrace showing.


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

Branch: refs/heads/ignite-5578
Commit: 6031ed85aa0242e8a56dee43c14c73bcafa7fab7
Parents: 98a5240
Author: vsisko <vsisko@gridgain.com>
Authored: Fri Jul 28 09:54:07 2017 +0700
Committer: vsisko <vsisko@gridgain.com>
Committed: Fri Jul 28 09:54:07 2017 +0700

----------------------------------------------------------------------
 .../ignite/internal/visor/debug/VisorThreadInfo.java      | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/6031ed85/modules/core/src/main/java/org/apache/ignite/internal/visor/debug/VisorThreadInfo.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/visor/debug/VisorThreadInfo.java
b/modules/core/src/main/java/org/apache/ignite/internal/visor/debug/VisorThreadInfo.java
index f48e6c1..9b0dd89 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/visor/debug/VisorThreadInfo.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/visor/debug/VisorThreadInfo.java
@@ -35,9 +35,6 @@ public class VisorThreadInfo extends VisorDataTransferObject {
     /** */
     private static final long serialVersionUID = 0L;
 
-    /** */
-    private static final int MAX_FRAMES = 8;
-
     /** Thread name. */
     private String name;
 
@@ -308,9 +305,7 @@ public class VisorThreadInfo extends VisorDataTransferObject {
 
         sb.append('\n');
 
-        int maxFrames = Math.min(stackTrace.size(), MAX_FRAMES);
-
-        for (int i = 0; i < maxFrames; i++) {
+        for (int i = 0; i < stackTrace.size(); i++) {
             StackTraceElement ste = stackTrace.get(i);
 
             sb.append("\tat ").append(ste).append('\n');
@@ -339,9 +334,6 @@ public class VisorThreadInfo extends VisorDataTransferObject {
             }
         }
 
-        if (maxFrames < stackTrace.size())
-            sb.append("\t...").append('\n');
-
         if (!F.isEmpty(locks)) {
             sb.append("\n\tNumber of locked synchronizers = ").append(locks.size()).append('\n');
 


Mime
View raw message