Skip to content

Commit f07c44f

Browse files
committed
Fix exceptions for size 512 in NestedStructsBenchmark
1 parent 43af876 commit f07c44f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

jsoniter-scala-benchmark/shared/src/main/scala/com/github/plokhotnyuk/jsoniter_scala/benchmark/CirceJsoniterCodecs.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ object CirceJsoniterCodecs {
1818
val escapingConfig: WriterConfig = WriterConfig.withEscapeUnicode(true)
1919
val prettyConfig: WriterConfig = WriterConfig.withIndentionStep(2).withPreferredBufSize(32768)
2020
val tooLongStringConfig: ReaderConfig = ReaderConfig.withPreferredCharBufSize(1024 * 1024)
21-
implicit val jsonCodec: JsonValueCodec[Json] = JsoniterScalaCodec.jsonCodec(doSerialize = _ ne Json.Null)
21+
implicit val jsonCodec: JsonValueCodec[Json] = JsoniterScalaCodec.jsonCodec(maxDepth = 512, doSerialize = _ ne Json.Null)
2222
val base64C3c: Codec[Array[Byte]] =
2323
Codec.from(Decoder.decodeString.map[Array[Byte]](Base64.getDecoder.decode),
2424
Encoder.encodeString.contramap[Array[Byte]](Base64.getEncoder.encodeToString))

jsoniter-scala-benchmark/shared/src/main/scala/com/github/plokhotnyuk/jsoniter_scala/benchmark/CommonParams.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import org.openjdk.jmh.annotations._
1212
"-noclassgc",
1313
"-Xms16g",
1414
"-Xmx16g",
15+
"-Xss4m",
1516
"-XX:NewSize=15g",
1617
"-XX:MaxNewSize=15g",
1718
"-XX:InitialCodeCacheSize=512m",

0 commit comments

Comments
 (0)