mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 01:24:33 +02:00
Merge
This commit is contained in:
commit
344a9becee
539 changed files with 51665 additions and 1091 deletions
|
@ -55,8 +55,11 @@ void ReferenceProcessor::init_statics() {
|
|||
java_lang_ref_SoftReference::set_clock(_soft_ref_timestamp_clock);
|
||||
|
||||
_always_clear_soft_ref_policy = new AlwaysClearPolicy();
|
||||
_default_soft_ref_policy = new COMPILER2_PRESENT(LRUMaxHeapPolicy())
|
||||
NOT_COMPILER2(LRUCurrentHeapPolicy());
|
||||
#if defined(COMPILER2) || INCLUDE_JVMCI
|
||||
_default_soft_ref_policy = new LRUMaxHeapPolicy();
|
||||
#else
|
||||
_default_soft_ref_policy = new LRUCurrentHeapPolicy();
|
||||
#endif
|
||||
if (_always_clear_soft_ref_policy == NULL || _default_soft_ref_policy == NULL) {
|
||||
vm_exit_during_initialization("Could not allocate reference policy object");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue