equal
deleted
inserted
replaced
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. |
1290 data = _head; |
1290 data = _head; |
1291 while (data != NULL) { |
1291 while (data != NULL) { |
1292 // Remove entries in the dictionary of live class loader that have |
1292 // Remove entries in the dictionary of live class loader that have |
1293 // initiated loading classes in a dead class loader. |
1293 // initiated loading classes in a dead class loader. |
1294 if (data->dictionary() != NULL) { |
1294 if (data->dictionary() != NULL) { |
1295 data->dictionary()->do_unloading(); |
1295 data->dictionary()->do_unloading(is_alive_closure); |
1296 } |
1296 } |
1297 // Walk a ModuleEntry's reads, and a PackageEntry's exports |
1297 // Walk a ModuleEntry's reads, and a PackageEntry's exports |
1298 // lists to determine if there are modules on those lists that are now |
1298 // lists to determine if there are modules on those lists that are now |
1299 // dead and should be removed. A module's life cycle is equivalent |
1299 // dead and should be removed. A module's life cycle is equivalent |
1300 // to its defining class loader's life cycle. Since a module is |
1300 // to its defining class loader's life cycle. Since a module is |