Mercurial > hg > graal-compiler
comparison src/share/vm/services/attachListener.cpp @ 12816:2720ab7a0d70
Merge
author | ccheung |
---|---|
date | Fri, 04 Oct 2013 21:00:43 -0700 |
parents | a07c25e4f67e |
children | 23c27f9ae1e8 a034dc5e910b |
comparison
equal
deleted
inserted
replaced
12815:4212bfb33d76 | 12816:2720ab7a0d70 |
---|---|
243 out->print_cr("flag value must be a boolean (1 or 0)"); | 243 out->print_cr("flag value must be a boolean (1 or 0)"); |
244 return JNI_ERR; | 244 return JNI_ERR; |
245 } | 245 } |
246 value = (tmp != 0); | 246 value = (tmp != 0); |
247 } | 247 } |
248 bool res = CommandLineFlags::boolAtPut((char*)name, &value, ATTACH_ON_DEMAND); | 248 bool res = CommandLineFlags::boolAtPut((char*)name, &value, Flag::ATTACH_ON_DEMAND); |
249 if (! res) { | 249 if (! res) { |
250 out->print_cr("setting flag %s failed", name); | 250 out->print_cr("setting flag %s failed", name); |
251 } | 251 } |
252 return res? JNI_OK : JNI_ERR; | 252 return res? JNI_OK : JNI_ERR; |
253 } | 253 } |
261 if (n != 1) { | 261 if (n != 1) { |
262 out->print_cr("flag value must be an integer"); | 262 out->print_cr("flag value must be an integer"); |
263 return JNI_ERR; | 263 return JNI_ERR; |
264 } | 264 } |
265 } | 265 } |
266 bool res = CommandLineFlags::intxAtPut((char*)name, &value, ATTACH_ON_DEMAND); | 266 bool res = CommandLineFlags::intxAtPut((char*)name, &value, Flag::ATTACH_ON_DEMAND); |
267 if (! res) { | 267 if (! res) { |
268 out->print_cr("setting flag %s failed", name); | 268 out->print_cr("setting flag %s failed", name); |
269 } | 269 } |
270 | 270 |
271 return res? JNI_OK : JNI_ERR; | 271 return res? JNI_OK : JNI_ERR; |
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 bool res = CommandLineFlags::uintxAtPut((char*)name, &value, ATTACH_ON_DEMAND); | 285 bool res = CommandLineFlags::uintxAtPut((char*)name, &value, Flag::ATTACH_ON_DEMAND); |
286 if (! res) { | 286 if (! res) { |
287 out->print_cr("setting flag %s failed", name); | 287 out->print_cr("setting flag %s failed", name); |
288 } | 288 } |
289 | 289 |
290 return res? JNI_OK : JNI_ERR; | 290 return res? JNI_OK : JNI_ERR; |
299 if (n != 1) { | 299 if (n != 1) { |
300 out->print_cr("flag value must be an unsigned 64-bit integer"); | 300 out->print_cr("flag value must be an unsigned 64-bit integer"); |
301 return JNI_ERR; | 301 return JNI_ERR; |
302 } | 302 } |
303 } | 303 } |
304 bool res = CommandLineFlags::uint64_tAtPut((char*)name, &value, ATTACH_ON_DEMAND); | 304 bool res = CommandLineFlags::uint64_tAtPut((char*)name, &value, Flag::ATTACH_ON_DEMAND); |
305 if (! res) { | 305 if (! res) { |
306 out->print_cr("setting flag %s failed", name); | 306 out->print_cr("setting flag %s failed", name); |
307 } | 307 } |
308 | 308 |
309 return res? JNI_OK : JNI_ERR; | 309 return res? JNI_OK : JNI_ERR; |
314 const char* value; | 314 const char* value; |
315 if ((value = op->arg(1)) == NULL) { | 315 if ((value = op->arg(1)) == NULL) { |
316 out->print_cr("flag value must be a string"); | 316 out->print_cr("flag value must be a string"); |
317 return JNI_ERR; | 317 return JNI_ERR; |
318 } | 318 } |
319 bool res = CommandLineFlags::ccstrAtPut((char*)name, &value, ATTACH_ON_DEMAND); | 319 bool res = CommandLineFlags::ccstrAtPut((char*)name, &value, Flag::ATTACH_ON_DEMAND); |
320 if (res) { | 320 if (res) { |
321 FREE_C_HEAP_ARRAY(char, value, mtInternal); | 321 FREE_C_HEAP_ARRAY(char, value, mtInternal); |
322 } else { | 322 } else { |
323 out->print_cr("setting flag %s failed", name); | 323 out->print_cr("setting flag %s failed", name); |
324 } | 324 } |