Skip to content

Commit

Permalink
Merge pull request #378 from geoand/noverify
Browse files Browse the repository at this point in the history
Add noverify flag to the JVM for the dev mode
  • Loading branch information
stuartwdouglas committed Jan 8, 2019
2 parents 0ae1fea + 157acb4 commit 6c07abd
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions maven/src/main/java/org/jboss/shamrock/maven/DevMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,13 @@ public class DevMojo extends AbstractMojo {
@Parameter(defaultValue = "${jvm.args}")
private String jvmArgs;

/**
* This value is intended to be set to true when some generated bytecode
* is erroneous causing the JVM to crash when the verify:none option is set (which is on by default)
*/
@Parameter(defaultValue = "${preventnoverify}")
private boolean preventnoverify = false;


@Override
public void execute() throws MojoFailureException {
Expand Down Expand Up @@ -111,7 +118,12 @@ public void execute() throws MojoFailureException {
}
}

// the following flags reduce startup time and are acceptable only for dev purposes
args.add("-XX:TieredStopAtLevel=1");
if(!preventnoverify) {
args.add("-Xverify:none");
}

//build a class-path string for the base platform
//this stuff does not change
StringBuilder classPath = new StringBuilder();
Expand Down

0 comments on commit 6c07abd

Please sign in to comment.