Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions buildSrc/src/main/kotlin/instrument-glue.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ sourceSets {
create("glue") {
output.dir(generatedGlueResources)
output.dir(generatedGlueJava)
java.include("**/glue/*")
}
main {
resources.srcDir(generatedGlueResources)
Expand Down
22 changes: 22 additions & 0 deletions field-inject/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,29 @@
plugins {
id("java-common")
id("instrument-glue")
}

dependencies {

testImplementation(sourceSets["glue"].output)
testImplementation(project(":utils"))
testImplementation(libs.asm.commons)
testImplementation(libs.asm.util)

jmh("com.blogspot.mydailyjava:weak-lock-free:0.18")
}

// include GlobalObjectStore in glue generation, so we can repackage it for injection
sourceSets["glue"].java {
srcDir("src/main/java")
include("**/GlobalObjectStore.java")
}

// field-inject generates dispatch + access glue for injection into the bootstrap classpath
extra["glue"] = listOf("ObjectStoreGlue")

tasks.jar {
// ObjectStoreGlue only contains large string constants that get inlined into FieldInjector
// - the inlining means we can safely drop ObjectStoreGlue from the final jar to save space
excludes.add("datadog/instrument/glue/ObjectStoreGlue.class")
}
Loading
Loading