equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2017, 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. |
49 f->do_oop((oop*) &cur->_privileged_context); |
49 f->do_oop((oop*) &cur->_privileged_context); |
50 cur = cur->_next; |
50 cur = cur->_next; |
51 } while(cur != NULL); |
51 } while(cur != NULL); |
52 } |
52 } |
53 |
53 |
54 void PrivilegedElement::classes_do(KlassClosure* f) { |
|
55 PrivilegedElement *cur = this; |
|
56 do { |
|
57 f->do_klass(cur->_klass); |
|
58 cur = cur->_next; |
|
59 } while(cur != NULL); |
|
60 } |
|
61 |
|
62 //------------------------------------------------------------------------------- |
54 //------------------------------------------------------------------------------- |
63 #ifndef PRODUCT |
55 #ifndef PRODUCT |
64 |
56 |
65 void PrivilegedElement::print_on(outputStream* st) const { |
57 void PrivilegedElement::print_on(outputStream* st) const { |
66 st->print(" " PTR_FORMAT " ", p2i(_frame_id)); |
58 st->print(" " PTR_FORMAT " ", p2i(_frame_id)); |