-
Notifications
You must be signed in to change notification settings - Fork 25
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
[CLOSED] Investigate ways of wrapping array object #33
Comments
Comment by jeff-aion (on Thursday May 17, 2018 at 13:59 GMT) To flesh out this problem, a little, this is related to the fact that all array types descent from java.lang.Object, meaning that this is another path outside of our shadow runtime. |
Comment by JunhanHu-aion (on Friday May 18, 2018 at 14:42 GMT) https://github.com/aionnetworkp/aion_vm/wiki/Array-Wrapping |
Comment by JunhanHu-aion (on Friday May 18, 2018 at 15:02 GMT) I will start with dealing with static type. Then move on to generic. |
Comment by JunhanHu-aion (on Friday May 18, 2018 at 15:46 GMT) Refactored arraywrapping class into ArrayWrappingClassAdapter and ArrayWrappingMethodAdapter |
Comment by JunhanHu-aion (on Friday May 18, 2018 at 18:15 GMT) Primitive type array wrapping done, working on unit test. |
Comment by romaion (on Tuesday May 22, 2018 at 16:18 GMT) Just came across the issue: if you try to instrument the code below with arraywrapping
it would be:
Which is not compilable |
Comment by romaion (on Tuesday May 22, 2018 at 16:20 GMT) Another case, try:
And you will get:
where int i=false; //wrong type |
Comment by JunhanHu-aion (on Tuesday May 22, 2018 at 16:42 GMT) @romaion We don't need the Java code to be compilable. JAVAC compilation is finished before our wrapping. |
Comment by romaion (on Tuesday May 22, 2018 at 17:45 GMT) Have you tried to load that code? |
Comment by romaion (on Tuesday May 22, 2018 at 18:34 GMT) StackWatcher#exitMethod() potentially can throw Exception. Why do you need that? If depth exceeds a limit it would already be checked on enterMethod() ? |
Comment by romaion (on Tuesday May 22, 2018 at 18:35 GMT) OutOfStackError is checked exception. They are extremely slow, why not to make it unchecked? |
Comment by JunhanHu-aion (on Monday May 28, 2018 at 20:20 GMT) https://github.com/aionnetworkp/aion_vm/commit/969033f37d7f73008ffe8e1f497c7e4e8923124f |
Issue created by yulongaion (on Wednesday May 16, 2018 at 20:52 GMT)
The text was updated successfully, but these errors were encountered: