Skip to content

Commit

Permalink
Add a comment for splitExpressions.
Browse files Browse the repository at this point in the history
  • Loading branch information
ueshin committed Dec 13, 2016
1 parent 0aedc47 commit 3d31cb3
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,17 @@ class CodegenContext {
splitExpressions(expressions, "apply", ("InternalRow", row) :: Nil)
}

/**
* Splits the generated code of expressions into multiple functions, because function has
* 64kb code size limit in JVM
*
* @param expressions the codes to evaluate expressions.
* @param funcName the split function name base.
* @param arguments the list of (type, name) of the arguments of the split function.
* @param returnType the return type of the split function.
* @param makeSplitFunction makes split function body, e.g. add preparation or cleanup.
* @param foldFunctions folds the split function calls.
*/
def splitExpressions(
expressions: Seq[String],
funcName: String,
Expand Down

0 comments on commit 3d31cb3

Please sign in to comment.