24 lines
875 B
Diff
24 lines
875 B
Diff
From: chenzhen <chenzhen44@huawei.com>
|
|
Subject: [PATCH] eliminate the difference of limit.pm
|
|
|
|
reason: The limit.pm are diff between two compilations, This is because that
|
|
there has diff when calculating dclone's maximum recursion depth by stacksize.
|
|
give max_depth a fixed value.
|
|
---
|
|
diff --git a/stacksize b/stacksize
|
|
index f93eccc..7adab2e 100644
|
|
--- a/stacksize
|
|
+++ b/stacksize
|
|
@@ -155,7 +155,10 @@ if ($max_depth == $bad1-1
|
|
print "MAX_DEPTH = $max_depth\n" unless QUIET;
|
|
}
|
|
print "# MAX_DEPTH_HASH = $n\n" unless QUIET;
|
|
-my $max_depth_hash = $n;
|
|
+
|
|
+# Set this variable to a const value to eliminate bep differences.
|
|
+# This value is close to the calculation result on machine with 8192 stacksize
|
|
+my $max_depth = 20145;
|
|
|
|
# Previously this calculation was done in the macro, calculate it here
|
|
# instead so a user setting of either variable more closely matches
|