8190359: Reduce the number of recorded klass dependencies

Skip recording dependencies to non-anonymous classes loaded by builtin class loaders.

Reviewed-by: iklam, coleenp, lfoltan
This commit is contained in:
Harold Seigel 2018-02-02 10:37:48 -05:00
parent 191a1f80a1
commit 83bb2205e8
2 changed files with 30 additions and 20 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2012, 2017, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -345,6 +345,7 @@ class ClassLoaderData : public CHeapObj<mtClass> {
bool is_system_class_loader_data() const;
bool is_platform_class_loader_data() const;
bool is_builtin_class_loader_data() const;
bool is_permanent_class_loader_data() const;
// The Metaspace is created lazily so may be NULL. This
// method will allocate a Metaspace if needed.