Skip to content

Commit

Permalink
8280823: Remove NULL check in DumpTimeClassInfo::is_excluded
Browse files Browse the repository at this point in the history
Reviewed-by: minqi, ccheung
  • Loading branch information
iklam committed Jan 28, 2022
1 parent 094db1a commit a1d1e47
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/hotspot/share/cds/dumpTimeClassInfo.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

/*
* Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2021, 2022, 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
Expand Down Expand Up @@ -135,8 +135,7 @@ class DumpTimeClassInfo: public CHeapObj<mtClass> {
}

bool is_excluded() {
// _klass may become NULL due to DynamicArchiveBuilder::set_to_null
return _excluded || _failed_verification || _klass == NULL;
return _excluded || _failed_verification;
}

// Was this class loaded while JvmtiExport::is_early_phase()==true
Expand Down

1 comment on commit a1d1e47

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.