hotspot/src/share/vm/prims/privilegedStack.hpp
changeset 46380 4a51438196cf
parent 13728 882756847a04
equal deleted inserted replaced
46379:43ec76e10184 46380:4a51438196cf
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2012, 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.
    37   intptr_t*     _frame_id;             // location on stack
    37   intptr_t*     _frame_id;             // location on stack
    38   PrivilegedElement* _next;        // Link to next one on stack
    38   PrivilegedElement* _next;        // Link to next one on stack
    39  public:
    39  public:
    40   void initialize(vframeStream* vf, oop context, PrivilegedElement* next, TRAPS);
    40   void initialize(vframeStream* vf, oop context, PrivilegedElement* next, TRAPS);
    41   void oops_do(OopClosure* f);
    41   void oops_do(OopClosure* f);
    42   void classes_do(KlassClosure* f);
       
    43   intptr_t* frame_id() const           { return _frame_id; }
    42   intptr_t* frame_id() const           { return _frame_id; }
    44   oop  privileged_context() const  { return _privileged_context; }
    43   oop  privileged_context() const  { return _privileged_context; }
    45   oop  class_loader() const        { return InstanceKlass::cast(_klass)->class_loader(); }
    44   oop  class_loader() const        { return InstanceKlass::cast(_klass)->class_loader(); }
    46   oop  protection_domain() const   { return InstanceKlass::cast(_klass)->protection_domain(); }
    45   oop  protection_domain() const   { return InstanceKlass::cast(_klass)->protection_domain(); }
    47   PrivilegedElement *next() const  { return _next; }
    46   PrivilegedElement *next() const  { return _next; }