-
Notifications
You must be signed in to change notification settings - Fork 14
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
Fix compilation error after Trace Compass API clean-up #28
Fix compilation error after Trace Compass API clean-up #28
Conversation
46b8ac2
to
40ef72d
Compare
// First add a vertex at the time of lock request | ||
graph.append(worker, lastReqVertex, EdgeType.RUNNING); | ||
graph.append(lastReqVertex, new OSEdgeContextState(OSEdgeContextEnum.RUNNING)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OSEdgeConstextState
and OSEdgeContextEnum
are internal. Should they be public API or is there a different (more correct) way to create ITmfEdgeContextState
here? @MatthewKhouzam what do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed there should. I would suggest that's a different patch, for now, we'll grin and bare it.
lastOwner.fVertex.linkVertical(unblockVertex); | ||
// TODO: check if it's the correct replacement | ||
// lastOwner.fVertex.linkVertical(unblockVertex); | ||
graph.edgeVertical(lastOwner.fVertex, unblockVertex, new OSEdgeContextState(OSEdgeContextEnum.DEFAULT), MUTEX_FIELD); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if this is a correct replacement.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks about right to me. @arfio please confirm!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems good to me also.
40ef72d
to
7463ae2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor changes.
// First add a vertex at the time of lock request | ||
graph.append(worker, lastReqVertex, EdgeType.RUNNING); | ||
graph.append(lastReqVertex, new OSEdgeContextState(OSEdgeContextEnum.RUNNING)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed there should. I would suggest that's a different patch, for now, we'll grin and bare it.
lastOwner.fVertex.linkVertical(unblockVertex); | ||
// TODO: check if it's the correct replacement | ||
// lastOwner.fVertex.linkVertical(unblockVertex); | ||
graph.edgeVertical(lastOwner.fVertex, unblockVertex, new OSEdgeContextState(OSEdgeContextEnum.DEFAULT), MUTEX_FIELD); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks about right to me. @arfio please confirm!
...ecompass/incubator/internal/xaf/core/statemachine/variable/StateMachineVariableAnalysis.java
Outdated
Show resolved
Hide resolved
...ecompass/incubator/internal/xaf/core/statemachine/variable/StateMachineVariableAnalysis.java
Outdated
Show resolved
Hide resolved
7463ae2
to
d789de3
Compare
lastOwner.fVertex.linkVertical(unblockVertex); | ||
// TODO: check if it's the correct replacement | ||
// lastOwner.fVertex.linkVertical(unblockVertex); | ||
graph.edgeVertical(lastOwner.fVertex, unblockVertex, new OSEdgeContextState(OSEdgeContextEnum.DEFAULT), MUTEX_FIELD); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems good to me also.
// So, the implementation was broken and this change just makes it compile | ||
|
||
// TmfGraph path = new CriticalPathAlgorithmBounded(graph).compute(Objects.requireNonNull(vstart), Objects.requireNonNull(vend)); | ||
ITmfGraph path = graph; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be fixed using the OSCriticalPathAlgorithm instead. I think it should be one line:
TmfGraph path = new OSCriticalPathAlgorithmBounded(graph).compute(Objects.requireNonNull(vstart), Objects.requireNonNull(vend));
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I figured it out
...ecompass/incubator/internal/xaf/core/statemachine/variable/StateMachineVariableAnalysis.java
Show resolved
Hide resolved
...ecompass/incubator/internal/xaf/core/statemachine/variable/StateMachineVariableAnalysis.java
Show resolved
Hide resolved
.../tracecompass/incubator/internal/xaf/core/statemachine/variable/utils/CriticalPathState.java
Show resolved
Hide resolved
See eclipse-tracecompass/org.eclipse.tracecompass#87 Note: XAF was broken before due incompatible changes in mainline TC. This commit, just makes it compile again, but it's still broken. Signed-off-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
d789de3
to
d249426
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am fine, we know this is a "stopgap" patch
I think we should make sure that it is using the same set of classes and not a mix of the old and new ones that will create issues later (at least in the same file). |
@MatthewKhouzam could you please confirm that you can address that in your follow-up PR? |
I will share the WIP soon. This is being done on a "volunteer" basis though. We need to get the build going soon. |
e4dfbac
into
eclipse-tracecompass-incubator:master
See eclipse-tracecompass/org.eclipse.tracecompass#87 for API clean-up.
Note: XAF was broken before due incompatible changes in mainline TC. This PR just makes it compile again, but it's still broken.
Signed-off-by: Bernd Hufmann bernd.hufmann@ericsson.com