Mercurial > hg > graal-jvmci-8
comparison src/share/vm/services/attachListener.cpp @ 14313:44315152d434
8028391: Make the Min/MaxHeapFreeRatio flags manageable
Summary: Made the flags Min- and MaxHeapFreeRatio manageable, and implemented support for these flags in ParallalGC.
Reviewed-by: sla, mgerdin, brutisso
author | jwilhelm |
---|---|
date | Wed, 29 Jan 2014 23:17:05 +0100 |
parents | 23c27f9ae1e8 |
children | ad3f8397fe37 |
comparison
equal
deleted
inserted
replaced
14312:73b1030c6253 | 14313:44315152d434 |
---|---|
280 if (n != 1) { | 280 if (n != 1) { |
281 out->print_cr("flag value must be an unsigned integer"); | 281 out->print_cr("flag value must be an unsigned integer"); |
282 return JNI_ERR; | 282 return JNI_ERR; |
283 } | 283 } |
284 } | 284 } |
285 | |
286 if (strncmp(name, "MaxHeapFreeRatio", 17) == 0) { | |
287 FormatBuffer<80> err_msg(""); | |
288 if (!Arguments::verify_MaxHeapFreeRatio(err_msg, value)) { | |
289 out->print_cr(err_msg.buffer()); | |
290 return JNI_ERR; | |
291 } | |
292 } else if (strncmp(name, "MinHeapFreeRatio", 17) == 0) { | |
293 FormatBuffer<80> err_msg(""); | |
294 if (!Arguments::verify_MinHeapFreeRatio(err_msg, value)) { | |
295 out->print_cr(err_msg.buffer()); | |
296 return JNI_ERR; | |
297 } | |
298 } | |
285 bool res = CommandLineFlags::uintxAtPut((char*)name, &value, Flag::ATTACH_ON_DEMAND); | 299 bool res = CommandLineFlags::uintxAtPut((char*)name, &value, Flag::ATTACH_ON_DEMAND); |
286 if (! res) { | 300 if (! res) { |
287 out->print_cr("setting flag %s failed", name); | 301 out->print_cr("setting flag %s failed", name); |
288 } | 302 } |
289 | 303 |