src/share/vm/classfile/classLoaderData.cpp

changeset 9507
7e72702243a4
parent 9327
f96fcd9e1e1b
child 9572
624a0741915c
child 9858
b985cbb00e68
equal deleted inserted replaced
9499:778ff2150570 9507:7e72702243a4
1 /* 1 /*
2 * Copyright (c) 2012, 2017, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2012, 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.
486 } 486 }
487 487
488 // These anonymous class loaders are to contain classes used for JSR292 488 // These anonymous class loaders are to contain classes used for JSR292
489 ClassLoaderData* ClassLoaderData::anonymous_class_loader_data(oop loader, TRAPS) { 489 ClassLoaderData* ClassLoaderData::anonymous_class_loader_data(oop loader, TRAPS) {
490 // Add a new class loader data to the graph. 490 // Add a new class loader data to the graph.
491 return ClassLoaderDataGraph::add(loader, true, CHECK_NULL); 491 return ClassLoaderDataGraph::add(loader, true, THREAD);
492 } 492 }
493 493
494 const char* ClassLoaderData::loader_name() { 494 const char* ClassLoaderData::loader_name() {
495 // Handles null class loader 495 // Handles null class loader
496 return SystemDictionary::loader_name(class_loader()); 496 return SystemDictionary::loader_name(class_loader());

mercurial