src/share/vm/prims/jvmtiEnv.cpp

changeset 9669
32bc598624bd
parent 9511
e33aa14a0d8b
child 9703
2fdf635bcf28
equal deleted inserted replaced
9668:acb9351e3a29 9669:32bc598624bd
1 /* 1 /*
2 * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2003, 2019, 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.
1619 if (k_oop == NULL) { 1619 if (k_oop == NULL) {
1620 return JVMTI_ERROR_INVALID_CLASS; 1620 return JVMTI_ERROR_INVALID_CLASS;
1621 } 1621 }
1622 } 1622 }
1623 1623
1624 if (initial_object != NULL) {
1625 oop init_obj = JNIHandles::resolve_external_guard(initial_object);
1626 if (init_obj == NULL) {
1627 return JVMTI_ERROR_INVALID_OBJECT;
1628 }
1629 }
1630
1624 Thread *thread = Thread::current(); 1631 Thread *thread = Thread::current();
1625 HandleMark hm(thread); 1632 HandleMark hm(thread);
1626 KlassHandle kh (thread, k_oop); 1633 KlassHandle kh (thread, k_oop);
1627 1634
1628 TraceTime t("FollowReferences", TraceJVMTIObjectTagging); 1635 TraceTime t("FollowReferences", TraceJVMTIObjectTagging);

mercurial