hotspot/src/share/vm/prims/jvmtiEnv.cpp
changeset 43969 ae5c415036b0
parent 43964 2f5e556a6037
child 44088 fb5421685295
child 46329 53ccc37bda19
equal deleted inserted replaced
43964:2f5e556a6037 43969:ae5c415036b0
     1 /*
     1 /*
     2  * Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2003, 2016, 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.
  1794     if (k_oop == NULL) {
  1794     if (k_oop == NULL) {
  1795       return JVMTI_ERROR_INVALID_CLASS;
  1795       return JVMTI_ERROR_INVALID_CLASS;
  1796     }
  1796     }
  1797   }
  1797   }
  1798 
  1798 
  1799   if (initial_object != NULL) {
       
  1800     oop init_obj = JNIHandles::resolve_external_guard(initial_object);
       
  1801     if (init_obj == NULL) {
       
  1802       return JVMTI_ERROR_INVALID_OBJECT;
       
  1803     }
       
  1804   }
       
  1805 
       
  1806   Thread *thread = Thread::current();
  1799   Thread *thread = Thread::current();
  1807   HandleMark hm(thread);
  1800   HandleMark hm(thread);
  1808   KlassHandle kh (thread, k_oop);
  1801   KlassHandle kh (thread, k_oop);
  1809 
  1802 
  1810   TraceTime t("FollowReferences", TRACETIME_LOG(Debug, jvmti, objecttagging));
  1803   TraceTime t("FollowReferences", TRACETIME_LOG(Debug, jvmti, objecttagging));