Skip to content
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

Adds anon function and flags in cache #296

Merged
merged 1 commit into from Feb 5, 2013
Merged

Adds anon function and flags in cache #296

merged 1 commit into from Feb 5, 2013

Conversation

skyluc
Copy link
Member

@skyluc skyluc commented Feb 4, 2013

Creates an new map cache to store information about method containing the code
of anonymous functions, and method flags.
With tests.

The cache is using 'simple' synchronization. It is not possible to put it inside the cache actor as it would create re-entrant synchronized actor calls.

Fixes #1001001

Creates an new map cache to store information about method containing the code
of anonymous functions, and method flags.
With tests.

Fixes #1001001
@scala-jenkins
Copy link

Started jenkins job pr-validator-master-trunk at https://jenkins.scala-ide.org:8496/jenkins/job/pr-validator-master-trunk/351/

@scala-jenkins
Copy link

Started jenkins job pr-validator-master-2.9.x at https://jenkins.scala-ide.org:8496/jenkins/job/pr-validator-master-2.9.x/358/

@scala-jenkins
Copy link

jenkins job pr-validator-master-2.9.x: Success - https://jenkins.scala-ide.org:8496/jenkins/job/pr-validator-master-2.9.x/358/

@scala-jenkins
Copy link

jenkins job pr-validator-master-trunk: Success - https://jenkins.scala-ide.org:8496/jenkins/job/pr-validator-master-trunk/351/

@dragos
Copy link
Member

dragos commented Feb 5, 2013

Very neat! No comment (LGTM).

import com.sun.jdi.Location
import com.sun.jdi.Method
import com.sun.jdi.ReferenceType
import com.sun.jdi.event.ClassPrepareEvent

object ScalaDebugCache {
Copy link
Member

Choose a reason for hiding this comment

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

Is it possible to start two different debug sessions within Eclipse (e.g., for two different projects). If yes, then the cache would be shared.

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't understand your question.
This is just a companion object, with some constants, some simple functions, and an apply() method to create cache instances.

The cache should not be shared between debug sessions. It contains JDI elements, which are direct references of internal structures of the debugged VM. They have to be used with the VM which provided them.

Copy link
Member

Choose a reason for hiding this comment

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

The git-diff fooled me. I see now the typeCache is not part of the module. It's all good then.

@dotta
Copy link
Member

dotta commented Feb 5, 2013

LGTM.

dragos added a commit that referenced this pull request Feb 5, 2013
…s-1001001

Adds anon function and flags in cache
@dragos dragos merged commit 7a3f316 into scala-ide:master Feb 5, 2013
@skyluc skyluc deleted the issue/debugger-cached-method-flags-1001001 branch February 27, 2013 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants