Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcf89ff7

Browse files
author
Harold Seigel
committed
8240324: Improve is_boot_class_loader_data() by adding simple check
Check if cld is the null_cld before looking at the class loader oopReviewed-by: coleenp
1 parent52cfd29 commitcf89ff7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/hotspot/share/classfile/classLoaderData.inline.hpp‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2011,2019, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2011,2020, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -39,8 +39,8 @@ inline oop ClassLoaderData::class_loader() const {
3939
}
4040

4141
inlineboolClassLoaderData::is_boot_class_loader_data()const {
42-
returnclass_loader() ==NULL;
43-
}
42+
returnthis == _the_null_class_loader_data ||class_loader() ==NULL;
43+
}
4444

4545
inline ClassLoaderData*ClassLoaderData::class_loader_data_or_null(oop loader) {
4646
if (loader ==NULL) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp