Skip to content

Commit

Permalink
CompilationFailureAction flag for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
datYori committed Jan 11, 2024
1 parent d5503d2 commit 1a2a4f1
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion client/src/main/scala/raw/client/api/CompilerService.scala
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ object CompilerService {
options.put("engine.CompileImmediately", "true")
options.put("engine.TraceCompilation", "true")
options.put("engine.BackgroundCompilation", "false")
options.put("engine.CompilationFailureAction", "Throw")
// options.put("engine.CompilationFailureAction", "Throw")
// options.put("engine.CompilationFailureAction", "Diagnose")
// options.put("compiler.LogInlinedTargets", "true")
// "-Dpolyglotimpl.CompilationFailureAction=Throw",
Expand Down
3 changes: 2 additions & 1 deletion snapi-client/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ Test / javaOptions ++= Seq(
// Limit overall memory and force crashing hard and early.
// Useful for debugging memleaks.
"-Xmx8G",
"-XX:+CrashOnOutOfMemoryError"
"-XX:+CrashOnOutOfMemoryError",
"-Dpolyglotimpl.CompilationFailureAction=Throw"
)

// Add dependency resolvers
Expand Down
3 changes: 2 additions & 1 deletion snapi-frontend/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ Test / javaOptions ++= Seq(
// Limit overall memory and force crashing hard and early.
// Useful for debugging memleaks.
"-Xmx8G",
"-XX:+CrashOnOutOfMemoryError"
"-XX:+CrashOnOutOfMemoryError",
"-Dpolyglotimpl.CompilationFailureAction=Throw"
)

// Add dependency resolvers
Expand Down
3 changes: 2 additions & 1 deletion snapi-truffle/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ Test / javaOptions ++= Seq(
// Limit overall memory and force crashing hard and early.
// Useful for debugging memleaks.
"-Xmx8G",
"-XX:+CrashOnOutOfMemoryError"
"-XX:+CrashOnOutOfMemoryError",
"-Dpolyglotimpl.CompilationFailureAction=Throw"
)

// Add dependency resolvers
Expand Down
3 changes: 2 additions & 1 deletion sql-client/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ Test / javaOptions ++= Seq(
// Limit overall memory and force crashing hard and early.
// Useful for debugging memleaks.
"-Xmx8G",
"-XX:+CrashOnOutOfMemoryError"
"-XX:+CrashOnOutOfMemoryError",
"-Dpolyglotimpl.CompilationFailureAction=Throw"
)

// Add dependency resolvers
Expand Down

0 comments on commit 1a2a4f1

Please sign in to comment.