Changeset 613 for trunk/zoo-project/zoo-kernel
- Timestamp:
- Mar 13, 2015, 3:24:44 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/service_internal_java.c
r580 r613 303 303 * Create a string containing the JVM -XX:* option for a given map 304 304 * Depending on the map' name: 305 * - in case the value is minus then the re ult will be : -XX:-name306 * - in case the value is plus then the re ult will be : -XX:+name307 * - in other cases the re ult will be : -XX:name=value305 * - in case the value is minus then the result will be : -XX:-name 306 * - in case the value is plus then the result will be : -XX:+name 307 * - in other cases the result will be : -XX:name=value 308 308 * 309 309 * @param m the map containing the option … … 322 322 323 323 /** 324 * Create a string containing the JVM -X* :* option for a given map.325 * The re ult will be in the following format: -Xname:value324 * Create a string containing the JVM -X** option for a given map. 325 * The result will be in the following format: -Xnamevalue 326 326 * 327 327 * @param m the map containing the option 328 * @return a char* containing the valide JVM option (-X X:*)328 * @return a char* containing the valide JVM option (-X**) 329 329 */ 330 330 char *parseJVMXOption(map* m){ 331 331 char *res=(char*)malloc((strlen(m->name)+strlen(m->value)+5)*sizeof(char)); 332 sprintf(res,"-X%s :%s",m->name,m->value);332 sprintf(res,"-X%s%s",m->name,m->value); 333 333 return res; 334 334 }
Note: See TracChangeset
for help on using the changeset viewer.