Skip to content

[backport] SI-6969, mishandling of SoftReferences in method cache. #1972

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 1, 2013
Merged

[backport] SI-6969, mishandling of SoftReferences in method cache. #1972

merged 1 commit into from
Feb 1, 2013

Conversation

soc
Copy link
Contributor

@soc soc commented Jan 25, 2013

More interesting to test than it was to fix. The soft
reference is now dereferenced once, the locally stored
underlying value ascertained to be non-null, and the
remainder of the references to the value use the local var.

The enclosed test reliably NPEs without this patch.

More interesting to test than it was to fix. The soft
reference is now dereferenced once, the locally stored
underlying value ascertained to be non-null, and the
remainder of the references to the value use the local var.

The enclosed test reliably NPEs without this patch.
@soc
Copy link
Contributor Author

soc commented Jan 25, 2013

@paulp I backported it as mentioned in https://issues.scala-lang.org/browse/SI-6969

I guess now the people in charge need to decide whether it is important enough. :-)

Backport of #1902

@soc
Copy link
Contributor Author

soc commented Jan 26, 2013

PLS REBUILD ALL

@scala-jenkins
Copy link

Started jenkins job pr-rangepos at https://scala-webapps.epfl.ch/jenkins/job/pr-rangepos/1632/

@scala-jenkins
Copy link

Started jenkins job pr-scala-testsuite-linux-opt at https://scala-webapps.epfl.ch/jenkins/job/pr-scala-testsuite-linux-opt/2363/

@scala-jenkins
Copy link

jenkins job pr-rangepos: Failed - https://scala-webapps.epfl.ch/jenkins/job/pr-rangepos/1632/
sad kitty

@scala-jenkins
Copy link

Started jenkins job pr-scala-testsuite-linux-opt at https://scala-webapps.epfl.ch/jenkins/job/pr-scala-testsuite-linux-opt/2363/

@scala-jenkins
Copy link

jenkins job pr-scala-testsuite-linux-opt: Success - https://scala-webapps.epfl.ch/jenkins/job/pr-scala-testsuite-linux-opt/2363/

@JamesIry
Copy link
Contributor

JamesIry commented Feb 1, 2013

PLS REBUILD ALL

@scala-jenkins
Copy link

jenkins job pr-scala-testsuite-linux-opt: Success - https://scala-webapps.epfl.ch/jenkins/job/pr-scala-testsuite-linux-opt/2377/

@scala-jenkins
Copy link

jenkins job pr-rangepos: Failed - https://scala-webapps.epfl.ch/jenkins/job/pr-rangepos/1632/
sad kitty

@adriaanm
Copy link
Contributor

adriaanm commented Feb 1, 2013

Thanks for doing the backport! Unfortunately, the milestone was somehow set to 2.10.1-RC1, so I didn't see this when I cut 2.9.3-RC2. Apologies.

@JamesIry
Copy link
Contributor

JamesIry commented Feb 1, 2013

@adriaanm turns out the failure was genuine so it wouldn't have made it anyway.

@JamesIry
Copy link
Contributor

JamesIry commented Feb 1, 2013

Never mind, it's a test problem in 2.9.x and can be ignored.

@adriaanm
Copy link
Contributor

adriaanm commented Feb 1, 2013

LGTM. I'll merge it for the next 2.9.x release.

adriaanm added a commit that referenced this pull request Feb 1, 2013
[backport] SI-6969, mishandling of SoftReferences in method cache.
@adriaanm adriaanm merged commit 58961c7 into scala:2.9.x Feb 1, 2013
bishabosha pushed a commit to scalacenter/scala that referenced this pull request Jun 26, 2020
[backport] SI-6969, mishandling of SoftReferences in method cache.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants