src/hotspot/share/prims/jvmtiTagMap.cpp
changeset 48787 7638bf98a312
parent 48616 80239a242d34
child 49036 bc92debe57e4
equal deleted inserted replaced
48786:cc231bd80c8b 48787:7638bf98a312
     1 /*
     1 /*
     2  * Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2003, 2018, 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.
  2580     // iteration has terminated
  2580     // iteration has terminated
  2581     if (stopped()) {
  2581     if (stopped()) {
  2582       return;
  2582       return;
  2583     }
  2583     }
  2584 
  2584 
  2585     // ignore null or deleted handles
       
  2586     oop o = *obj_p;
  2585     oop o = *obj_p;
  2587     if (o == NULL || o == JNIHandles::deleted_handle()) {
  2586     // ignore null
       
  2587     if (o == NULL) {
  2588       return;
  2588       return;
  2589     }
  2589     }
  2590 
  2590 
  2591     assert(Universe::heap()->is_in_reserved(o), "should be impossible");
  2591     assert(Universe::heap()->is_in_reserved(o), "should be impossible");
  2592 
  2592 
  2639     // iteration has terminated
  2639     // iteration has terminated
  2640     if (stopped()) {
  2640     if (stopped()) {
  2641       return;
  2641       return;
  2642     }
  2642     }
  2643 
  2643 
  2644     // ignore null or deleted handles
       
  2645     oop o = *obj_p;
  2644     oop o = *obj_p;
  2646     if (o == NULL || o == JNIHandles::deleted_handle()) {
  2645     // ignore null
       
  2646     if (o == NULL) {
  2647       return;
  2647       return;
  2648     }
  2648     }
  2649 
  2649 
  2650     if (!ServiceUtil::visible_oop(o)) {
  2650     if (!ServiceUtil::visible_oop(o)) {
  2651       return;
  2651       return;