hotspot/src/share/vm/gc/shared/blockOffsetTable.cpp
changeset 46968 9119841280f4
parent 35469 17ea1b453dd5
equal deleted inserted replaced
46953:39063b484ec2 46968:9119841280f4
     1 /*
     1 /*
     2  * Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2000, 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.
   341     // First check if the start is an allocated block and only
   341     // First check if the start is an allocated block and only
   342     // then if it is a valid object.
   342     // then if it is a valid object.
   343     oop o = oop(start);
   343     oop o = oop(start);
   344     assert(!Universe::is_fully_initialized() ||
   344     assert(!Universe::is_fully_initialized() ||
   345            _sp->is_free_block(start) ||
   345            _sp->is_free_block(start) ||
   346            o->is_oop_or_null(), "Bad object was found");
   346            oopDesc::is_oop_or_null(o), "Bad object was found");
   347     next_index++;
   347     next_index++;
   348     last_p = p;
   348     last_p = p;
   349     last_start = start;
   349     last_start = start;
   350     last_o = o;
   350     last_o = o;
   351   }
   351   }