on master help sign in
Fix heap overflow due to limit-build-mem issue
0bfa00bHarendra Kumar
benchmark/streamly-benchmarks.cabal+6−2
@@ -149,7 +149,9 @@ library
149
149
150common bench-options
150common bench-options
151 import: compile-options, optimization-options, bench-depends
151 import: compile-options, optimization-options, bench-depends
152− ghc-options: -rtsopts +RTS -M512M -RTS
152+ ghc-options: -rtsopts
153+ if flag(limit-build-mem)
154+ ghc-options: +RTS -M512M -RTS
153 build-depends: streamly-benchmarks == 0.0.0
155 build-depends: streamly-benchmarks == 0.0.0
154
156
155-- Some benchmarks are threaded some are not
157-- Some benchmarks are threaded some are not
@@ -157,7 +159,9 @@ common bench-options-threaded
157 import: compile-options, optimization-options, bench-depends
159 import: compile-options, optimization-options, bench-depends
158 -- -threaded and -N2 is important because some GC and space leak issues
160 -- -threaded and -N2 is important because some GC and space leak issues
159 -- trigger only with these options.
161 -- trigger only with these options.
160− ghc-options: -threaded -rtsopts -with-rtsopts "-N2" +RTS -M512M -RTS
162+ ghc-options: -threaded -rtsopts -with-rtsopts "-N2"
163+ if flag(limit-build-mem)
164+ ghc-options: +RTS -M512M -RTS
161 build-depends: streamly-benchmarks == 0.0.0
165 build-depends: streamly-benchmarks == 0.0.0
162
166
163-------------------------------------------------------------------------------
167-------------------------------------------------------------------------------