Mercurial > hg > truffle
comparison src/share/vm/runtime/globals.hpp @ 20249:0c48231c5c84
8038756: new WB API :: get/setVMFlag
Reviewed-by: vlivanov, sla
author | iignatyev |
---|---|
date | Fri, 30 May 2014 17:20:48 +0400 |
parents | 009de2b033fc |
children | f3aeae1f9fc5 |
comparison
equal
deleted
inserted
replaced
20248:009de2b033fc | 20249:0c48231c5c84 |
---|---|
361 }; | 361 }; |
362 | 362 |
363 | 363 |
364 class CommandLineFlags { | 364 class CommandLineFlags { |
365 public: | 365 public: |
366 static bool boolAt(char* name, size_t len, bool* value); | 366 static bool boolAt(const char* name, size_t len, bool* value); |
367 static bool boolAt(char* name, bool* value) { return boolAt(name, strlen(name), value); } | 367 static bool boolAt(const char* name, bool* value) { return boolAt(name, strlen(name), value); } |
368 static bool boolAtPut(char* name, size_t len, bool* value, Flag::Flags origin); | 368 static bool boolAtPut(const char* name, size_t len, bool* value, Flag::Flags origin); |
369 static bool boolAtPut(char* name, bool* value, Flag::Flags origin) { return boolAtPut(name, strlen(name), value, origin); } | 369 static bool boolAtPut(const char* name, bool* value, Flag::Flags origin) { return boolAtPut(name, strlen(name), value, origin); } |
370 | 370 |
371 static bool intxAt(char* name, size_t len, intx* value); | 371 static bool intxAt(const char* name, size_t len, intx* value); |
372 static bool intxAt(char* name, intx* value) { return intxAt(name, strlen(name), value); } | 372 static bool intxAt(const char* name, intx* value) { return intxAt(name, strlen(name), value); } |
373 static bool intxAtPut(char* name, size_t len, intx* value, Flag::Flags origin); | 373 static bool intxAtPut(const char* name, size_t len, intx* value, Flag::Flags origin); |
374 static bool intxAtPut(char* name, intx* value, Flag::Flags origin) { return intxAtPut(name, strlen(name), value, origin); } | 374 static bool intxAtPut(const char* name, intx* value, Flag::Flags origin) { return intxAtPut(name, strlen(name), value, origin); } |
375 | 375 |
376 static bool uintxAt(char* name, size_t len, uintx* value); | 376 static bool uintxAt(const char* name, size_t len, uintx* value); |
377 static bool uintxAt(char* name, uintx* value) { return uintxAt(name, strlen(name), value); } | 377 static bool uintxAt(const char* name, uintx* value) { return uintxAt(name, strlen(name), value); } |
378 static bool uintxAtPut(char* name, size_t len, uintx* value, Flag::Flags origin); | 378 static bool uintxAtPut(const char* name, size_t len, uintx* value, Flag::Flags origin); |
379 static bool uintxAtPut(char* name, uintx* value, Flag::Flags origin) { return uintxAtPut(name, strlen(name), value, origin); } | 379 static bool uintxAtPut(const char* name, uintx* value, Flag::Flags origin) { return uintxAtPut(name, strlen(name), value, origin); } |
380 | 380 |
381 static bool uint64_tAt(char* name, size_t len, uint64_t* value); | 381 static bool uint64_tAt(const char* name, size_t len, uint64_t* value); |
382 static bool uint64_tAt(char* name, uint64_t* value) { return uint64_tAt(name, strlen(name), value); } | 382 static bool uint64_tAt(const char* name, uint64_t* value) { return uint64_tAt(name, strlen(name), value); } |
383 static bool uint64_tAtPut(char* name, size_t len, uint64_t* value, Flag::Flags origin); | 383 static bool uint64_tAtPut(const char* name, size_t len, uint64_t* value, Flag::Flags origin); |
384 static bool uint64_tAtPut(char* name, uint64_t* value, Flag::Flags origin) { return uint64_tAtPut(name, strlen(name), value, origin); } | 384 static bool uint64_tAtPut(const char* name, uint64_t* value, Flag::Flags origin) { return uint64_tAtPut(name, strlen(name), value, origin); } |
385 | 385 |
386 static bool doubleAt(char* name, size_t len, double* value); | 386 static bool doubleAt(const char* name, size_t len, double* value); |
387 static bool doubleAt(char* name, double* value) { return doubleAt(name, strlen(name), value); } | 387 static bool doubleAt(const char* name, double* value) { return doubleAt(name, strlen(name), value); } |
388 static bool doubleAtPut(char* name, size_t len, double* value, Flag::Flags origin); | 388 static bool doubleAtPut(const char* name, size_t len, double* value, Flag::Flags origin); |
389 static bool doubleAtPut(char* name, double* value, Flag::Flags origin) { return doubleAtPut(name, strlen(name), value, origin); } | 389 static bool doubleAtPut(const char* name, double* value, Flag::Flags origin) { return doubleAtPut(name, strlen(name), value, origin); } |
390 | 390 |
391 static bool ccstrAt(char* name, size_t len, ccstr* value); | 391 static bool ccstrAt(const char* name, size_t len, ccstr* value); |
392 static bool ccstrAt(char* name, ccstr* value) { return ccstrAt(name, strlen(name), value); } | 392 static bool ccstrAt(const char* name, ccstr* value) { return ccstrAt(name, strlen(name), value); } |
393 // Contract: Flag will make private copy of the incoming value. | 393 // Contract: Flag will make private copy of the incoming value. |
394 // Outgoing value is always malloc-ed, and caller MUST call free. | 394 // Outgoing value is always malloc-ed, and caller MUST call free. |
395 static bool ccstrAtPut(char* name, size_t len, ccstr* value, Flag::Flags origin); | 395 static bool ccstrAtPut(const char* name, size_t len, ccstr* value, Flag::Flags origin); |
396 static bool ccstrAtPut(char* name, ccstr* value, Flag::Flags origin) { return ccstrAtPut(name, strlen(name), value, origin); } | 396 static bool ccstrAtPut(const char* name, ccstr* value, Flag::Flags origin) { return ccstrAtPut(name, strlen(name), value, origin); } |
397 | 397 |
398 // Returns false if name is not a command line flag. | 398 // Returns false if name is not a command line flag. |
399 static bool wasSetOnCmdline(const char* name, bool* value); | 399 static bool wasSetOnCmdline(const char* name, bool* value); |
400 static void printSetFlags(outputStream* out); | 400 static void printSetFlags(outputStream* out); |
401 | 401 |