title: Pass -XX option to JNI_CreateJavaVM
body: <p>I tried to use the following code to pass option to JNI_CreateJavaVM() :</p>
  
  <pre><code>auto options = std::string{"-XX:+UseMembar -Djava.class.path="} + clspath;
  jvm_options.optionString = const_cast&lt;char *&gt;(options.c_str());
  args.options = &amp;jvm_options;
  args.ignoreUnrecognized = 0;
  int rv;
  rv = JNI_CreateJavaVM(jvm, reinterpret_cast&lt;void **&gt;(&amp;env_), &amp;args);
  </code></pre>
  
  <p>rv was -6 after the call.</p>
  
  <p>How should I pass the option ?</p>
  
  <p>Thanks</p>