< prev index next >

src/share/vm/runtime/arguments.hpp

Print this page
rev 8910 : full patch for jfr

*** 1,7 **** /* ! * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 48,63 **** --- 48,66 ---- class SystemProperty: public CHeapObj<mtInternal> { private: char* _key; char* _value; SystemProperty* _next; + bool _internal; + bool _writeable; bool writeable() { return _writeable; } public: // Accessors const char* key() const { return _key; } + bool internal() const { return _internal; } char* value() const { return _value; } SystemProperty* next() const { return _next; } void set_next(SystemProperty* next) { _next = next; } bool set_value(char *value) { if (writeable()) {
*** 95,105 **** } } } // Constructor ! SystemProperty(const char* key, const char* value, bool writeable) { if (key == NULL) { _key = NULL; } else { _key = AllocateHeap(strlen(key)+1, mtInternal); strcpy(_key, key); --- 98,108 ---- } } } // Constructor ! SystemProperty(const char* key, const char* value, bool writeable, bool internal = false) { if (key == NULL) { _key = NULL; } else { _key = AllocateHeap(strlen(key)+1, mtInternal); strcpy(_key, key);
*** 110,119 **** --- 113,123 ---- _value = AllocateHeap(strlen(value)+1, mtInternal); strcpy(_value, value); } _next = NULL; _writeable = writeable; + _internal = internal; } }; // For use by -agentlib, -agentpath and -Xrun
< prev index next >