Skip to content

Add cyclic reference detection to TASTY unpickling #3842

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
Jan 15, 2018

Conversation

smarter
Copy link
Member

@smarter smarter commented Jan 15, 2018

No description provided.

@smarter
Copy link
Member Author

smarter commented Jan 15, 2018

This makes it easier to find the root cause of issues like #3816:

> run -Ythrough-tasty tests/pos/NoCyclicReference.scala
[info] Running dotty.tools.dotc.fromtasty.Debug -classpath /home/smarter/opt/dotty/library/target/scala-2.12/dotty-library_2.12-0.6.0-bin-SNAPSHOT-nonbootstrapped.jar tests/pos/NoCyclicReference.scala
Compiling from .scala sources
Compiling TASTY from .class sources
Exception in thread "main" java.lang.AssertionError: assertion failed: Cyclic reference while unpickling tree at address 61
...

@smarter smarter requested a review from odersky January 15, 2018 19:51
Copy link
Contributor

@odersky odersky left a comment

Choose a reason for hiding this comment

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

LGTM

@smarter smarter merged commit f8907f1 into scala:master Jan 15, 2018
@allanrenucci allanrenucci deleted the cyclic-unpickling branch January 16, 2018 07:59
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.

2 participants