Skip to content

Commit

Permalink
Add -exclude.
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkraljevic committed Aug 15, 2014
1 parent faf8108 commit 3e5d064
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion hadoop/src/main/java/water/hadoop/h2odriver.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public class h2odriver extends Configured implements Tool {
static boolean enablePrintGCDetails = false;
static boolean enablePrintGCTimeStamps = false;
static boolean enableVerboseClass = false;
static boolean enableExcludeMethods = false;
static String licenseFileName = null;

// State filled in as a result of handling options.
Expand Down Expand Up @@ -549,6 +550,9 @@ else if (s.equals("-verbose:gc")) {
else if (s.equals("-verbose:class")) {
enableVerboseClass = true;
}
else if (s.equals("-exclude")) {
enableExcludeMethods = true;
}
else if (s.equals("-XX:+PrintGCDetails")) {
enablePrintGCDetails = true;
}
Expand Down Expand Up @@ -793,7 +797,9 @@ private int run2(String[] args) throws Exception {
+ (enableVerboseGC ? " -verbose:gc" : "")
+ (enablePrintGCDetails ? " -XX:+PrintGCDetails" : "")
+ (enablePrintGCTimeStamps ? " -XX:+PrintGCTimeStamps" : "")
+ (enableVerboseClass ? " -verbose:class" : "");
+ (enableVerboseClass ? " -verbose:class" : "")
+ (enableExcludeMethods ? " -XX:CompileCommand=exclude,water/fvec/NewChunk.append2slowd" : "")
;
conf.set("mapred.child.java.opts", mapChildJavaOpts);
conf.set("mapred.map.child.java.opts", mapChildJavaOpts); // MapR 2.x requires this.

Expand Down

0 comments on commit 3e5d064

Please sign in to comment.