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

Byte-code transformation via a dynamically attached Java agent #296

Merged
merged 22 commits into from
Apr 18, 2024

Conversation

ndkoval
Copy link
Collaborator

@ndkoval ndkoval commented Mar 27, 2024

No description provided.

@ndkoval ndkoval force-pushed the javaagent-integration branch 2 times, most recently from 886880e to 8c633dc Compare March 28, 2024 17:58
@ndkoval ndkoval force-pushed the javaagent-integration branch from 79ed0d3 to 09a2446 Compare April 5, 2024 12:37
@ndkoval ndkoval requested a review from eupp April 5, 2024 12:37
@ndkoval ndkoval force-pushed the javaagent-integration branch from 09a2446 to cdac29d Compare April 5, 2024 14:01
@avpotapov00 avpotapov00 self-requested a review April 5, 2024 15:07
@ndkoval ndkoval requested a review from eupp April 8, 2024 20:23
ndkoval and others added 19 commits April 15, 2024 13:41
…checkJavaAgent.kt

Co-authored-by: Evgeniy Moiseenko <[email protected]>
Signed-off-by: Nikita Koval <[email protected]>
…checkJavaAgent.kt

Co-authored-by: Evgeniy Moiseenko <[email protected]>
Signed-off-by: Nikita Koval <[email protected]>
Signed-off-by: Evgeniy Moiseenko <[email protected]>
Signed-off-by: Evgeniy Moiseenko <[email protected]>
* ensure that the sequential specification class is always instrumented before starting verification

Signed-off-by: Evgeniy Moiseenko <[email protected]>
* run intercepted continuation code inside ignored section

Signed-off-by: Evgeniy Moiseenko <[email protected]>
* ensure verifier is called with LincheckJavaAgent installed

Signed-off-by: Evgeniy Moiseenko <[email protected]>
* ensure verifier is called with LincheckJavaAgent installed

Signed-off-by: Evgeniy Moiseenko <[email protected]>
Signed-off-by: Evgeniy Moiseenko <[email protected]>
Signed-off-by: Evgeniy Moiseenko <[email protected]>
@eupp eupp force-pushed the javaagent-integration branch from 133164d to 12ab98e Compare April 16, 2024 10:40
@@ -8,7 +8,7 @@
* with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/

package org.jetbrains.kotlinx.lincheck
package org.jetbrains.kotlinx.lincheck.transformation
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Please check that there is only one UnsafeHolder in the codebase and move it to the outer package -- it is now used not only for transformation.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Moved it into util package.

}
}

private fun readFieldViaUnsafe(obj: Any?, field: Field): Any? =
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The same code is now used for the plugin, please keep only one version.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Removed duplicate implementation, and put readFieldViaUnsafe into util package.

eupp added 3 commits April 18, 2024 19:33
Signed-off-by: Evgeniy Moiseenko <[email protected]>
Signed-off-by: Evgeniy Moiseenko <[email protected]>
@eupp eupp merged commit be298de into develop Apr 18, 2024
15 checks passed
@eupp eupp deleted the javaagent-integration branch April 18, 2024 19:10
@eupp eupp mentioned this pull request Apr 29, 2024
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