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()); |