comparison src/share/vm/runtime/globals.hpp @ 20248:009de2b033fc

8029070: memory leak in jmm_SetVMGlobal Reviewed-by: kvn, dholmes
author iignatyev
date Mon, 23 Dec 2013 20:56:18 +0400
parents 0982ec23da03
children 0c48231c5c84
comparison
equal deleted inserted replaced
20241:bcd72ab4d91f 20248:009de2b033fc
388 static bool doubleAtPut(char* name, size_t len, double* value, Flag::Flags origin); 388 static bool doubleAtPut(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(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(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(char* name, ccstr* value) { return ccstrAt(name, strlen(name), value); }
393 // Contract: Flag will make private copy of the incoming value.
394 // Outgoing value is always malloc-ed, and caller MUST call free.
393 static bool ccstrAtPut(char* name, size_t len, ccstr* value, Flag::Flags origin); 395 static bool ccstrAtPut(char* name, size_t len, ccstr* value, Flag::Flags origin);
394 static bool ccstrAtPut(char* name, ccstr* value, Flag::Flags origin) { return ccstrAtPut(name, strlen(name), value, origin); } 396 static bool ccstrAtPut(char* name, ccstr* value, Flag::Flags origin) { return ccstrAtPut(name, strlen(name), value, origin); }
395 397
396 // Returns false if name is not a command line flag. 398 // Returns false if name is not a command line flag.
397 static bool wasSetOnCmdline(const char* name, bool* value); 399 static bool wasSetOnCmdline(const char* name, bool* value);