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

Refactor byte-code transformation #285

Merged
merged 56 commits into from
Mar 20, 2024
Merged

Refactor byte-code transformation #285

merged 56 commits into from
Mar 20, 2024

Conversation

avpotapov00
Copy link
Collaborator

@avpotapov00 avpotapov00 commented Mar 4, 2024

Refactor byte-code transformation for further replacing the custom class loaders with a dynamically attached javaagent. This is a part of #136.

Also, fixes #134 and several other issues discovered during the refactoring (see the added tests)

@avpotapov00 avpotapov00 self-assigned this Mar 4, 2024
@avpotapov00 avpotapov00 requested a review from eupp March 14, 2024 17:12
Aleksandr.Potapov added 9 commits March 14, 2024 22:01
# Conflicts:
#	src/jvm/main/org/jetbrains/kotlinx/lincheck/runner/FixedActiveThreadsExecutor.kt
#	src/jvm/main/org/jetbrains/kotlinx/lincheck/runner/ParallelThreadsRunner.kt
#	src/jvm/main/org/jetbrains/kotlinx/lincheck/strategy/managed/ManagedStrategy.kt
@avpotapov00 avpotapov00 requested a review from eupp March 15, 2024 16:49
@@ -46,5 +46,5 @@ internal interface EventTracker {
fun randomNextInt(): Int

fun onNewObjectCreation(obj: Any)
fun addDependency(receiver: Any, value: Any?)
fun afterFieldAssign(receiver: Any, value: Any?)
Copy link
Collaborator

Choose a reason for hiding this comment

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

You can do this in the code, you don't need byte-code instrumentation. Also, check function names in the LocalObjectManager class.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Postponed

src/jvm/main/org/jetbrains/kotlinx/lincheck/Injections.kt Outdated Show resolved Hide resolved
@avpotapov00 avpotapov00 requested a review from ndkoval March 19, 2024 23:02
@ndkoval ndkoval merged commit 814f2e1 into develop Mar 20, 2024
12 checks passed
@ndkoval ndkoval deleted the transformation branch March 20, 2024 00:16
@ndkoval ndkoval changed the title New transformation implemented as a part of javaagents Refactor byte-code transformation Mar 20, 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.

3 participants