hotspot/src/share/vm/classfile/metadataOnStackMark.hpp
changeset 26558 b7df27df6384
parent 15430 7c35f12cf1e5
child 27247 99db666dbe8e
equal deleted inserted replaced
26557:e399effe36f9 26558:b7df27df6384
     1 /*
     1 /*
     2  * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2013, 2014, 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.
    35 // This is also used for other things that can be deallocated, like class
    35 // This is also used for other things that can be deallocated, like class
    36 // metadata during parsing, relocated methods, and methods in backtraces.
    36 // metadata during parsing, relocated methods, and methods in backtraces.
    37 class MetadataOnStackMark : public StackObj {
    37 class MetadataOnStackMark : public StackObj {
    38   NOT_PRODUCT(static bool _is_active;)
    38   NOT_PRODUCT(static bool _is_active;)
    39  public:
    39  public:
    40   MetadataOnStackMark();
    40   MetadataOnStackMark(bool has_redefined_a_class);
    41   ~MetadataOnStackMark();
    41   ~MetadataOnStackMark();
    42   static void record(Metadata* m);
    42   static void record(Metadata* m);
    43 };
    43 };
    44 
    44 
    45 #endif // SHARE_VM_CLASSFILE_METADATAONSTACKMARK_HPP
    45 #endif // SHARE_VM_CLASSFILE_METADATAONSTACKMARK_HPP