Skip to content

Commit

Permalink
Merge pull request #8510 from VermaSh/medallia_micro_bnchmrk
Browse files Browse the repository at this point in the history
Performance gain by avoiding unnecessary writes on LoZ
  • Loading branch information
DanHeidinga committed Feb 8, 2020
2 parents 54535ef + d07554c commit 961dc66
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
package java.lang.ref;

/*******************************************************************************
* Copyright (c) 1998, 2010 IBM Corp. and others
* Copyright (c) 1998, 2020 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
Expand Down Expand Up @@ -62,7 +62,9 @@ public SoftReference(T r) {
*/
public T get () {
/*[PR 124242] SoftReference.get() should reset age*/
age = 0;
if (age != 0) {
age = 0;
}
return super.get();
}
}

0 comments on commit 961dc66

Please sign in to comment.