mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 17:44:40 +02:00
8276422: Add command-line option to disable finalization
Co-authored-by: David Holmes <dholmes@openjdk.org> Co-authored-by: Brent Christian <bchristi@openjdk.org> Reviewed-by: dholmes, kbarrett, bchristi
This commit is contained in:
parent
ec7cb6d5d3
commit
d7ad546758
13 changed files with 265 additions and 17 deletions
|
@ -329,7 +329,17 @@ class InstanceKlass: public Klass {
|
|||
|
||||
static bool _disable_method_binary_search;
|
||||
|
||||
// Controls finalizer registration
|
||||
static bool _finalization_enabled;
|
||||
|
||||
public:
|
||||
|
||||
// Queries finalization state
|
||||
static bool is_finalization_enabled() { return _finalization_enabled; }
|
||||
|
||||
// Sets finalization state
|
||||
static void set_finalization_enabled(bool val) { _finalization_enabled = val; }
|
||||
|
||||
// The three BUILTIN class loader types
|
||||
bool is_shared_boot_class() const {
|
||||
return (_misc_flags & _misc_is_shared_boot_class) != 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue