< prev index next >

src/hotspot/share/oops/symbol.hpp

Print this page

*** 1,7 **** /* ! * Copyright (c) 1997, 2016, 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, 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.
*** 163,179 **** // Reference counting. See comments above this class for when to use. int refcount() const { return _refcount; } void increment_refcount(); void decrement_refcount(); - // Set _refcount non zero to avoid being reclaimed by GC. - void set_permanent() { - assert(LogTouchedMethods, "Should not be called with LogTouchedMethods off"); - if (_refcount != PERM_REFCOUNT) { - _refcount = PERM_REFCOUNT; - } - } bool is_permanent() { return (_refcount == PERM_REFCOUNT); } int byte_at(int index) const { --- 163,172 ----
< prev index next >