equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
3660 #endif |
3660 #endif |
3661 current = current->next(); |
3661 current = current->next(); |
3662 } |
3662 } |
3663 } |
3663 } |
3664 |
3664 |
|
3665 void InstanceKlass::set_init_state(ClassState state) { |
3665 #ifdef ASSERT |
3666 #ifdef ASSERT |
3666 void InstanceKlass::set_init_state(ClassState state) { |
|
3667 bool good_state = is_shared() ? (_init_state <= state) |
3667 bool good_state = is_shared() ? (_init_state <= state) |
3668 : (_init_state < state); |
3668 : (_init_state < state); |
3669 assert(good_state || state == allocated, "illegal state transition"); |
3669 assert(good_state || state == allocated, "illegal state transition"); |
|
3670 #endif |
3670 _init_state = (u1)state; |
3671 _init_state = (u1)state; |
3671 } |
3672 } |
3672 #endif |
|
3673 |
3673 |
3674 #if INCLUDE_JVMTI |
3674 #if INCLUDE_JVMTI |
3675 |
3675 |
3676 // RedefineClasses() support for previous versions |
3676 // RedefineClasses() support for previous versions |
3677 |
3677 |