Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
DiSL
DiSL
Commits
b258b79e
Commit
b258b79e
authored
Sep 05, 2013
by
Lukáš Marek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added some comments and TODOs
Weaver odd fix removed ShadowClass - classId hidden
parent
f3ab4bb8
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
15 deletions
+10
-15
src-re-agent/dislreagent.c
src-re-agent/dislreagent.c
+2
-0
src-re-server/ch/usi/dag/dislreserver/shadow/ShadowClass.java
...re-server/ch/usi/dag/dislreserver/shadow/ShadowClass.java
+4
-2
src-re-server/ch/usi/dag/dislreserver/shadow/ShadowString.java
...e-server/ch/usi/dag/dislreserver/shadow/ShadowString.java
+2
-1
src-re-server/ch/usi/dag/dislreserver/shadow/ShadowThread.java
...e-server/ch/usi/dag/dislreserver/shadow/ShadowThread.java
+2
-0
src-test/ch/usi/dag/disl/test/dispatch/CodeExecuted.java
src-test/ch/usi/dag/disl/test/dispatch/CodeExecuted.java
+0
-7
src/ch/usi/dag/disl/weaver/Weaver.java
src/ch/usi/dag/disl/weaver/Weaver.java
+0
-5
No files found.
src-re-agent/dislreagent.c
View file @
b258b79e
...
...
@@ -1365,6 +1365,8 @@ void JNICALL jvmti_callback_class_file_load_hook(
// ******************* CLASS prepare callback *******************
// registers all native methods so they can be used during VM init phase
void
JNICALL
jvmti_callback_class_prepare_hook
(
jvmtiEnv
*
jvmti_env
,
JNIEnv
*
jni_env
,
jthread
thread
,
jclass
klass
)
{
...
...
src-re-server/ch/usi/dag/dislreserver/shadow/ShadowClass.java
View file @
b258b79e
...
...
@@ -16,9 +16,11 @@ public abstract class ShadowClass extends ShadowObject {
this
.
classLoader
=
classLoader
;
}
//
//
public
final
int
getClassId
()
{
// No need to expose the interface to user
// getId() should be sufficient
protected
final
int
getClassId
()
{
return
classId
;
}
...
...
src-re-server/ch/usi/dag/dislreserver/shadow/ShadowString.java
View file @
b258b79e
package
ch.usi.dag.dislreserver.shadow
;
// TODO ShadowString should better handle if String data are not send
// over network - throw a runtime exception ??
public
class
ShadowString
extends
ShadowObject
{
private
String
value
;
...
...
src-re-server/ch/usi/dag/dislreserver/shadow/ShadowThread.java
View file @
b258b79e
package
ch.usi.dag.dislreserver.shadow
;
// TODO ShadowTrhead should better handle if String data are not send
// over network - throw a runtime exception ??
public
class
ShadowThread
extends
ShadowObject
{
private
String
name
;
...
...
src-test/ch/usi/dag/disl/test/dispatch/CodeExecuted.java
View file @
b258b79e
...
...
@@ -80,13 +80,6 @@ public class CodeExecuted extends RemoteAnalysis {
throw
new
RuntimeException
(
"This class should be transfered as class"
);
}
// class id should be non 0
if
(((
ShadowClass
)
c
).
getClassId
()
==
0
)
{
throw
new
RuntimeException
(
"Class id should not be null"
);
}
System
.
out
.
println
(
"Received class id: "
+
((
ShadowClass
)
c
).
getClassId
());
if
(!
(
t
instanceof
ShadowThread
))
{
throw
new
RuntimeException
(
"This thread should be transfered as thread"
);
}
...
...
src/ch/usi/dag/disl/weaver/Weaver.java
View file @
b258b79e
...
...
@@ -287,11 +287,6 @@ public class Weaver {
if
(
snippet
.
getAnnotationClass
().
equals
(
AfterThrowing
.
class
)
||
snippet
.
getAnnotationClass
().
equals
(
After
.
class
))
{
if
(
Type
.
getInternalName
(
Object
.
class
).
equals
(
classNode
.
name
)
&&
methodNode
.
name
.
endsWith
(
"init>"
))
{
continue
;
}
for
(
Shadow
shadow
:
shadows
)
{
WeavingRegion
region
=
shadow
.
getWeavingRegion
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment