hotspot/src/share/vm/code/debugInfo.hpp
changeset 31406 4121166054b6
parent 23182 6940057d6552
child 33160 c59f1676d27e
equal deleted inserted replaced
31405:594c1ae9477e 31406:4121166054b6
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2015, 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.
   264     _code = code;
   264     _code = code;
   265     _obj_pool = obj_pool;
   265     _obj_pool = obj_pool;
   266 
   266 
   267   } ;
   267   } ;
   268 
   268 
   269   oop read_oop() {
   269   oop read_oop();
   270     oop o = code()->oop_at(read_int());
       
   271     assert(o == NULL || o->is_oop(), "oop only");
       
   272     return o;
       
   273   }
       
   274   Method* read_method() {
   270   Method* read_method() {
   275     Method* o = (Method*)(code()->metadata_at(read_int()));
   271     Method* o = (Method*)(code()->metadata_at(read_int()));
   276     // is_metadata() is a faster check than is_metaspace_object()
   272     // is_metadata() is a faster check than is_metaspace_object()
   277     assert(o == NULL || o->is_metadata(), "meta data only");
   273     assert(o == NULL || o->is_metadata(), "meta data only");
   278     return o;
   274     return o;